How to use the InternalError function from http-errors
Find comprehensive JavaScript http-errors.InternalError code examples handpicked from public code repositorys.
621 622 623 624 625 626 627 628 629 630
throw new createHTTPError.BadRequest(err.message); } else { // an unknown error happened // log it and throw internal error logger.error(err.stack || err.toString()); throw new createHTTPError.InternalError('internal error'); } } // return in common format
0
0
0
http-errors.NotFound is the most popular function in http-errors (1819 examples)