Closed smichaelsen closed 9 years ago
Idea: use integers as keys in the routing array to indicate HTTP Status codes:
// ..
400 => 'bad request', // applied to HTTP code 400 and all 4xx error codes that are not explicitly defined
404 => 'not found', // applied to HTTP code 404
// ..
If routing results in 404 other other errors you should be able to define error output behaviour in an elegant way.