How to use the RangeNotSatisfiable function from http-errors
Find comprehensive JavaScript http-errors.RangeNotSatisfiable code examples handpicked from public code repositorys.
79 80 81 82 83 84 85 86 87 88
unsupportedMediaType: function unsupportedMediaType (message) { return new createError.UnsupportedMediaType(message) }, rangeNotSatisfiable: function rangeNotSatisfiable (message) { return new createError.RangeNotSatisfiable(message) }, expectationFailed: function expectationFailed (message) { return new createError.ExpectationFailed(message)
30
340
17
+ 55 other calls in file
156 157 158 159 160 161 162 163 164 165
module.exports.LengthRequired = new HTTPErrors.LengthRequired() module.exports.PreconditionFailed = new HTTPErrors.PreconditionFailed() module.exports.PayloadTooLarge = new HTTPErrors.PayloadTooLarge() 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()
1
0
7
+ 41 other calls in file
113 114 115 116 117 118 119 120 121 122
case 415: { httpError = createError.UnsupportedMediaType(); break; } case 416: { httpError = createError.RangeNotSatisfiable(); break; } case 417: { httpError = createError.ExpectationFailed();
0
0
2
+ 41 other calls in file
http-errors.NotFound is the most popular function in http-errors (1819 examples)