kishorenc/road — Issue #8: Set status property on Error()
Author: kishorenc
Created: 2011-12-31 17:19:59+00:00
State: open

Road currently passes any error encountered (or passed from controller) down stack. Useful to add a `status` property to error object to indicate type of error - this can be used to render the correct HTTP status code by the downstream error handling function.

E.g. if controller is not found, set error.status = 404, for other errors prob set status to 500.