1 | var Errors = exports.Errors = [{
|
2 | statusCode: 400,
|
3 | title: "Bad Request",
|
4 | message: "The request cannot be fulfilled due to bad syntax."
|
5 | }, {
|
6 | statusCode: 401,
|
7 | title: "Unauthorized",
|
8 | message: "The request was a legal request, but requires user authentication."
|
9 | }, {
|
10 | statusCode: 403,
|
11 | title: "Forbidden",
|
12 | message: "The server understood the request, but is refusing to fulfill it."
|
13 | }, {
|
14 | statusCode: 404,
|
15 | title: "Not Found",
|
16 | message: "The requested resource could not be found but may be available again in the future."
|
17 | }, {
|
18 | statusCode: 405,
|
19 | title: "Method Not Allowed",
|
20 | message: "A request was made of a resource using a request method not supported by that resource."
|
21 | }, {
|
22 | statusCode: 406,
|
23 | title: "Not Acceptable",
|
24 | message: "The requested resource is only capable of generating content not acceptable according to the Accept headers sent in the request."
|
25 | }, {
|
26 | statusCode: 407,
|
27 | title: "Proxy Authentication Required",
|
28 | message: "The client must first authenticate itself with the proxy."
|
29 | }, {
|
30 | statusCode: 408,
|
31 | title: "Request Timeout",
|
32 | message: "The server timed out waiting for the request."
|
33 | }, {
|
34 | statusCode: 409,
|
35 | title: "Conflict",
|
36 | message: "The request could not be completed due to a conflict with the current state of the resource."
|
37 | }, {
|
38 | statusCode: 410,
|
39 | title: "Gone",
|
40 | message: "The resource requested is no longer available and will not be available again."
|
41 | }, {
|
42 | statusCode: 411,
|
43 | title: "Length Required",
|
44 | message: "The request did not specify the length of its content, which is required by the requested resource."
|
45 | }, {
|
46 | statusCode: 412,
|
47 | title: "Precondition Failed",
|
48 | message: "The server does not meet one of the preconditions that the requester put on the request."
|
49 | }, {
|
50 | statusCode: 413,
|
51 | title: "Request Entity Too Large",
|
52 | message: "The request is larger than the server is willing or able to process."
|
53 | }, {
|
54 | statusCode: 414,
|
55 | title: "Request-URI Too Long",
|
56 | message: "The URI provided was too long for the server to process."
|
57 | }, {
|
58 | statusCode: 415,
|
59 | title: "Unsupported Media Type",
|
60 | message: "The server is refusing to service the request because the payload is in a format not supported by this method on the target resource."
|
61 | }, {
|
62 | statusCode: 416,
|
63 | title: "Requested Range Not Satisfiable",
|
64 | message: "The client has asked for a portion of the file, but the server cannot supply that portion."
|
65 | }, {
|
66 | statusCode: 417,
|
67 | title: "Expectation Failed",
|
68 | message: "The server cannot meet the requirements of the Expect request-header field."
|
69 | }, {
|
70 | statusCode: 496,
|
71 | title: "No Cert",
|
72 | message: "The client must provide a certificate to fulfill the request."
|
73 | }, {
|
74 | statusCode: 498,
|
75 | title: "Token expired",
|
76 | message: "Token was expired or is in invalid state."
|
77 | }, {
|
78 | statusCode: 499,
|
79 | title: "Token required",
|
80 | message: "A token is required to fulfill the request."
|
81 | }, {
|
82 | statusCode: 500,
|
83 | title: "Internal Server Error",
|
84 | message: "The server encountered an internal error and was unable to complete your request."
|
85 | }, {
|
86 | statusCode: 501,
|
87 | title: "Not Implemented",
|
88 | message: "The server either does not recognize the request method, or it lacks the ability to fulfil the request."
|
89 | }, {
|
90 | statusCode: 502,
|
91 | title: "Bad Gateway",
|
92 | message: "The server was acting as a gateway or proxy and received an invalid response from the upstream server."
|
93 | }, {
|
94 | statusCode: 503,
|
95 | title: "Service Unavailable",
|
96 | message: "The server is currently unavailable (because it is overloaded or down for maintenance)."
|
97 | }];
|
98 |
|
99 | if (typeof exports !== 'undefined') {
|
100 | module.exports.Errors = Errors;
|
101 | } |
\ | No newline at end of file |