Skip to content

Instantly share code, notes, and snippets.

@garcia556
garcia556 / koa-error-default-vs-custom.js
Created November 19, 2017 03:15
Shows differences in koa error handling (for koa #1098)
'use strict';
const
PORT = 8080,
URL_LISTEN = `http://localhost:${PORT}`,
ROUTE_DEFAULT = "/default",
ROUTE_CUSTOM = "/custom",
ROUTE_CUSTOM_CODE = "/custom_code";
const