issues
search
abedev
/
abe
API for Back-End (Haxe, NodeJS and Express)
54
stars
10
forks
source link
Error handling helpers
#70
Closed
mlms13
closed
9 years ago
mlms13
commented
9 years ago
Adds optional error handling middleware that can be easily attached to a router
Adds specific error types that trigger appropriate status codes (
400
,
401
,
403
,
404
,
500
,
501
,
502
,
503
,
504
)
Defaults to
500
status for unhandled errors that don't specify a code
Includes a debug mode which sends the full stack trace to the client
400
,401
,403
,404
,500
,501
,502
,503
,504
)500
status for unhandled errors that don't specify a code