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)
30
0
2
+ 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()
1
0
7
+ 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();
0
0
2
+ 41 other calls in file
http-errors.NotFound is the most popular function in http-errors (1819 examples)