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)
fork icon30
star icon340
watch icon17

+ 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()
fork icon1
star icon0
watch icon7

+ 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();
fork icon0
star icon0
watch icon2

+ 41 other calls in file