How to use the LoopDetected function from http-errors
Find comprehensive JavaScript http-errors.LoopDetected code examples handpicked from public code repositorys.
166 167 168 169 170 171 172 173 174 175
insufficientStorage: function insufficientStorage (message) { return new createError.InsufficientStorage(message) }, loopDetected: function loopDetected (message) { return new createError.LoopDetected(message) }, bandwidthLimitExceeded: function bandwidthLimitExceeded (message) { return new createError.BandwidthLimitExceeded(message)
30
340
17
+ 55 other calls in file
GitHub: nxtedition/nxt-lib
67 68 69 70 71 72 73 74 75 76
} if (proxyName) { if (via) { if (via.split(',').some((name) => name.endsWith(proxyName))) { throw new createError.LoopDetected() } via += ', ' } else { via = ''
4
3
5
+ 3 other calls in file
177 178 179 180 181 182 183 184 185
module.exports.ServiceUnavailable = new HTTPErrors.ServiceUnavailable() module.exports.GatewayTimeout = new HTTPErrors.GatewayTimeout() module.exports.HTTPVersionNotSupported = new HTTPErrors.HTTPVersionNotSupported() module.exports.VariantAlsoNegotiates = new HTTPErrors.VariantAlsoNegotiates() module.exports.InsufficientStorage = new HTTPErrors.InsufficientStorage() module.exports.LoopDetected = new HTTPErrors.LoopDetected() module.exports.BandwidthLimitExceeded = new HTTPErrors.BandwidthLimitExceeded() module.exports.NotExtended = new HTTPErrors.NotExtended() module.exports.NetworkAuthenticationRequired = new HTTPErrors.NetworkAuthenticationRequired()
1
0
7
+ 41 other calls in file
189 190 191 192 193 194 195 196 197 198
case 507: { httpError = createError.InsufficientStorage(); break; } case 508: { httpError = createError.LoopDetected(); break; } case 509: { httpError = createError.BandwidthLimitExceeded();
0
0
2
+ 41 other calls in file
http-errors.NotFound is the most popular function in http-errors (1819 examples)