How to use the MisdirectedRequest function from http-errors
Find comprehensive JavaScript http-errors.MisdirectedRequest code examples handpicked from public code repositorys.
91 92 93 94 95 96 97 98 99 100
imateapot: function imateapot (message) { return new createError.ImATeapot(message) }, misdirectedRequest: function misdirectedRequest (message) { return new createError.MisdirectedRequest(message) }, unprocessableEntity: function unprocessableEntity (message) { return new createError.UnprocessableEntity(message)
30
340
17
+ 55 other calls in file
159 160 161 162 163 164 165 166 167 168
module.exports.URITooLong = new HTTPErrors.URITooLong() module.exports.UnsupportedMediaType = new HTTPErrors.UnsupportedMediaType() module.exports.RangeNotSatisfiable = new HTTPErrors.RangeNotSatisfiable() module.exports.ExpectationFailed = new HTTPErrors.ExpectationFailed() module.exports.ImATeapot = new HTTPErrors.ImATeapot() module.exports.MisdirectedRequest = new HTTPErrors.MisdirectedRequest() module.exports.UnprocessableEntity = new HTTPErrors.UnprocessableEntity() module.exports.Locked = new HTTPErrors.Locked() module.exports.FailedDependency = new HTTPErrors.FailedDependency() module.exports.UnorderedCollection = new HTTPErrors.UnorderedCollection()
1
0
7
+ 41 other calls in file
125 126 127 128 129 130 131 132 133 134
case 418: { httpError = createError.ImATeapot(); break; } case 421: { httpError = createError.MisdirectedRequest(); break; } case 422: { httpError = createError.UnprocessableEntity();
0
0
2
+ 41 other calls in file
http-errors.NotFound is the most popular function in http-errors (1819 examples)