client-errors
Version:
Client error class for Node servers
30 lines (29 loc) • 1.75 kB
JavaScript
module.exports = {
400: 'The server cannot process the request due to a client error',
401: 'The user is not authorized',
403: 'The server refused to authorize the request',
404: 'The server did not find a current representation for the target resource',
405: 'The method received is not allowed',
406: 'The request is not acceptable to the user agent',
407: 'The client needs to authenticate itself in order to use a proxy',
408: 'The request was not completed in the expected time',
409: 'The request was not completed due to a conflict with the target resource',
410: 'The target resource is no longer available at the origin server',
411: 'The server refuses to accept the request without a defined Content-Length',
412: 'One or more conditions given in the request header fields evaluated to false',
413: 'The request payload is too large',
414: 'The request target is too longer',
415: 'The payload is in a format not supported',
416: "None of the ranges in the request's Range header field overlap the current extent of the selected resource",
417: "The expectation given in the request's Expect header field could not be met",
418: "I'm a teapot",
421: 'The request was directed at a server that is not able to produce a response',
422: 'The server is unable to process the request',
423: 'The source or destination resource of a method is locked',
424: 'The requested action depended on another action',
426: 'This service requires use of a different protocol',
428: 'This request is required to be conditional',
429: 'The user has sent too many requests in a given amount of time',
431: 'Request header fields too large',
451: 'Denied access due to a consequence of a legal demand',
};