How to use the getStatus function from http-status-codes
Find comprehensive JavaScript http-status-codes.getStatus code examples handpicked from public code repositorys.
GitHub: QuaNode/backend-js
444 445 446 447 448 449 450 451 452
if (res.headersSent) { return next(err); } respond(res.status(...[ HttpStatus.getStatus(...[ err.code ]) || 500 ]), {
0
39
4
+ 5 other calls in file
http-status-codes.StatusCodes is the most popular function in http-status-codes (2750 examples)