How to use the UnorderedCollection function from http-errors

Find comprehensive JavaScript http-errors.UnorderedCollection code examples handpicked from public code repositorys.

107
108
109
110
111
112
113
114
115
116
failedDependency: function failedDependency (message) {
  return new createError.FailedDependency(message)
},

unorderedCollection: function unorderedCollection (message) {
  return new createError.UnorderedCollection(message)
},

upgradeRequired: function upgradeRequired (message) {
  return new createError.UpgradeRequired(message)
fork icon30
star icon0
watch icon2

+ 37 other calls in file

163
164
165
166
167
168
169
170
171
172
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()
module.exports.UpgradeRequired = new HTTPErrors.UpgradeRequired()
module.exports.PreconditionRequired = new HTTPErrors.PreconditionRequired()
module.exports.TooManyRequests = new HTTPErrors.TooManyRequests()
module.exports.RequestHeaderFieldsTooLarge = new HTTPErrors.RequestHeaderFieldsTooLarge()
fork icon1
star icon0
watch icon7

+ 41 other calls in file

141
142
143
144
145
146
147
148
149
150
case 424: {
  httpError = createError.FailedDependency();
  break;
}
case 425: {
  httpError = createError.UnorderedCollection();
  break;
}
case 426: {
  httpError = createError.UpgradeRequired();
fork icon0
star icon0
watch icon2

+ 41 other calls in file