UNPKG

21.4 kBJavaScriptView Raw
1"use strict";
2exports.STATUS = {
3 CONTINUE: 100,
4 SWITCHING_PROTOCOLS: 101,
5 OK: 200,
6 CREATED: 201,
7 ACCEPTED: 202,
8 NON_AUTHORITATIVE_INFORMATION: 203,
9 NO_CONTENT: 204,
10 RESET_CONTENT: 205,
11 PARTIAL_CONTENT: 206,
12 MULTIPLE_CHOICES: 300,
13 MOVED_PERMANTENTLY: 301,
14 FOUND: 302,
15 SEE_OTHER: 303,
16 NOT_MODIFIED: 304,
17 USE_PROXY: 305,
18 TEMPORARY_REDIRECT: 307,
19 BAD_REQUEST: 400,
20 UNAUTHORIZED: 401,
21 PAYMENT_REQUIRED: 402,
22 FORBIDDEN: 403,
23 NOT_FOUND: 404,
24 METHOD_NOT_ALLOWED: 405,
25 NOT_ACCEPTABLE: 406,
26 PROXY_AUTHENTICATION_REQUIRED: 407,
27 REQUEST_TIMEOUT: 408,
28 CONFLICT: 409,
29 GONE: 410,
30 LENGTH_REQUIRED: 411,
31 PRECONDITION_FAILED: 412,
32 PAYLOAD_TO_LARGE: 413,
33 URI_TOO_LONG: 414,
34 UNSUPPORTED_MEDIA_TYPE: 415,
35 RANGE_NOT_SATISFIABLE: 416,
36 EXPECTATION_FAILED: 417,
37 IM_A_TEAPOT: 418,
38 UPGRADE_REQUIRED: 426,
39 INTERNAL_SERVER_ERROR: 500,
40 NOT_IMPLEMENTED: 501,
41 BAD_GATEWAY: 502,
42 SERVICE_UNAVAILABLE: 503,
43 GATEWAY_TIMEOUT: 504,
44 HTTP_VERSION_NOT_SUPPORTED: 505,
45 PROCESSING: 102,
46 MULTI_STATUS: 207,
47 IM_USED: 226,
48 PERMANENT_REDIRECT: 308,
49 UNPROCESSABLE_ENTRY: 422,
50 LOCKED: 423,
51 FAILED_DEPENDENCY: 424,
52 PRECONDITION_REQUIRED: 428,
53 TOO_MANY_REQUESTS: 429,
54 REQUEST_HEADER_FIELDS_TOO_LARGE: 431,
55 UNAVAILABLE_FOR_LEGAL_REASONS: 451,
56 VARIANT_ALSO_NEGOTIATES: 506,
57 INSUFFICIENT_STORAGE: 507,
58 NETWORK_AUTHENTICATION_REQUIRED: 511
59};
60/*tslint:disable:quotemark max-line-length one-line */
61exports.STATUS_CODE_INFO = {
62 "100": {
63 "code": 100,
64 "text": "Continue",
65 "description": "\"The initial part of a request has been received and has not yet been rejected by the server.\"",
66 "spec_title": "RFC7231#6.2.1",
67 "spec_href": "http://tools.ietf.org/html/rfc7231#section-6.2.1"
68 },
69 "101": {
70 "code": 101,
71 "text": "Switching Protocols",
72 "description": "\"The server understands and is willing to comply with the client's request, via the Upgrade header field, for a change in the application protocol being used on this connection.\"",
73 "spec_title": "RFC7231#6.2.2",
74 "spec_href": "http://tools.ietf.org/html/rfc7231#section-6.2.2"
75 },
76 "200": {
77 "code": 200,
78 "text": "OK",
79 "description": "\"The request has succeeded.\"",
80 "spec_title": "RFC7231#6.3.1",
81 "spec_href": "http://tools.ietf.org/html/rfc7231#section-6.3.1"
82 },
83 "201": {
84 "code": 201,
85 "text": "Created",
86 "description": "\"The request has been fulfilled and has resulted in one or more new resources being created.\"",
87 "spec_title": "RFC7231#6.3.2",
88 "spec_href": "http://tools.ietf.org/html/rfc7231#section-6.3.2"
89 },
90 "202": {
91 "code": 202,
92 "text": "Accepted",
93 "description": "\"The request has been accepted for processing, but the processing has not been completed.\"",
94 "spec_title": "RFC7231#6.3.3",
95 "spec_href": "http://tools.ietf.org/html/rfc7231#section-6.3.3"
96 },
97 "203": {
98 "code": 203,
99 "text": "Non-Authoritative Information",
100 "description": "\"The request was successful but the enclosed payload has been modified from that of the origin server's 200 (OK) response by a transforming proxy.\"",
101 "spec_title": "RFC7231#6.3.4",
102 "spec_href": "http://tools.ietf.org/html/rfc7231#section-6.3.4"
103 },
104 "204": {
105 "code": 204,
106 "text": "No Content",
107 "description": "\"The server has successfully fulfilled the request and that there is no additional content to send in the response payload body.\"",
108 "spec_title": "RFC7231#6.3.5",
109 "spec_href": "http://tools.ietf.org/html/rfc7231#section-6.3.5"
110 },
111 "205": {
112 "code": 205,
113 "text": "Reset Content",
114 "description": "\"The server has fulfilled the request and desires that the user agent reset the \"document view\", which caused the request to be sent, to its original state as received from the origin server.\"",
115 "spec_title": "RFC7231#6.3.6",
116 "spec_href": "http://tools.ietf.org/html/rfc7231#section-6.3.6"
117 },
118 "206": {
119 "code": 206,
120 "text": "Partial Content",
121 "description": "\"The server is successfully fulfilling a range request for the target resource by transferring one or more parts of the selected representation that correspond to the satisfiable ranges found in the requests's Range header field.\"",
122 "spec_title": "RFC7233#4.1",
123 "spec_href": "http://tools.ietf.org/html/rfc7233#section-4.1"
124 },
125 "300": {
126 "code": 300,
127 "text": "Multiple Choices",
128 "description": "\"The target resource has more than one representation, each with its own more specific identifier, and information about the alternatives is being provided so that the user (or user agent) can select a preferred representation by redirecting its request to one or more of those identifiers.\"",
129 "spec_title": "RFC7231#6.4.1",
130 "spec_href": "http://tools.ietf.org/html/rfc7231#section-6.4.1"
131 },
132 "301": {
133 "code": 301,
134 "text": "Moved Permanently",
135 "description": "\"The target resource has been assigned a new permanent URI and any future references to this resource ought to use one of the enclosed URIs.\"",
136 "spec_title": "RFC7231#6.4.2",
137 "spec_href": "http://tools.ietf.org/html/rfc7231#section-6.4.2"
138 },
139 "302": {
140 "code": 302,
141 "text": "Found",
142 "description": "\"The target resource resides temporarily under a different URI.\"",
143 "spec_title": "RFC7231#6.4.3",
144 "spec_href": "http://tools.ietf.org/html/rfc7231#section-6.4.3"
145 },
146 "303": {
147 "code": 303,
148 "text": "See Other",
149 "description": "\"The server is redirecting the user agent to a different resource, as indicated by a URI in the Location header field, that is intended to provide an indirect response to the original request.\"",
150 "spec_title": "RFC7231#6.4.4",
151 "spec_href": "http://tools.ietf.org/html/rfc7231#section-6.4.4"
152 },
153 "304": {
154 "code": 304,
155 "text": "Not Modified",
156 "description": "\"A conditional GET request has been received and would have resulted in a 200 (OK) response if it were not for the fact that the condition has evaluated to false.\"",
157 "spec_title": "RFC7232#4.1",
158 "spec_href": "http://tools.ietf.org/html/rfc7232#section-4.1"
159 },
160 "305": {
161 "code": 305,
162 "text": "Use Proxy",
163 "description": "*deprecated*",
164 "spec_title": "RFC7231#6.4.5",
165 "spec_href": "http://tools.ietf.org/html/rfc7231#section-6.4.5"
166 },
167 "307": {
168 "code": 307,
169 "text": "Temporary Redirect",
170 "description": "\"The target resource resides temporarily under a different URI and the user agent MUST NOT change the request method if it performs an automatic redirection to that URI.\"",
171 "spec_title": "RFC7231#6.4.7",
172 "spec_href": "http://tools.ietf.org/html/rfc7231#section-6.4.7"
173 },
174 "400": {
175 "code": 400,
176 "text": "Bad Request",
177 "description": "\"The server cannot or will not process the request because the received syntax is invalid, nonsensical, or exceeds some limitation on what the server is willing to process.\"",
178 "spec_title": "RFC7231#6.5.1",
179 "spec_href": "http://tools.ietf.org/html/rfc7231#section-6.5.1"
180 },
181 "401": {
182 "code": 401,
183 "text": "Unauthorized",
184 "description": "\"The request has not been applied because it lacks valid authentication credentials for the target resource.\"",
185 "spec_title": "RFC7235#6.3.1",
186 "spec_href": "http://tools.ietf.org/html/rfc7235#section-3.1"
187 },
188 "402": {
189 "code": 402,
190 "text": "Payment Required",
191 "description": "*reserved*",
192 "spec_title": "RFC7231#6.5.2",
193 "spec_href": "http://tools.ietf.org/html/rfc7231#section-6.5.2"
194 },
195 "403": {
196 "code": 403,
197 "text": "Forbidden",
198 "description": "\"The server understood the request but refuses to authorize it.\"",
199 "spec_title": "RFC7231#6.5.3",
200 "spec_href": "http://tools.ietf.org/html/rfc7231#section-6.5.3"
201 },
202 "404": {
203 "code": 404,
204 "text": "Not Found",
205 "description": "\"The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.\"",
206 "spec_title": "RFC7231#6.5.4",
207 "spec_href": "http://tools.ietf.org/html/rfc7231#section-6.5.4"
208 },
209 "405": {
210 "code": 405,
211 "text": "Method Not Allowed",
212 "description": "\"The method specified in the request-line is known by the origin server but not supported by the target resource.\"",
213 "spec_title": "RFC7231#6.5.5",
214 "spec_href": "http://tools.ietf.org/html/rfc7231#section-6.5.5"
215 },
216 "406": {
217 "code": 406,
218 "text": "Not Acceptable",
219 "description": "\"The target resource does not have a current representation that would be acceptable to the user agent, according to the proactive negotiation header fields received in the request, and the server is unwilling to supply a default representation.\"",
220 "spec_title": "RFC7231#6.5.6",
221 "spec_href": "http://tools.ietf.org/html/rfc7231#section-6.5.6"
222 },
223 "407": {
224 "code": 407,
225 "text": "Proxy Authentication Required",
226 "description": "\"The client needs to authenticate itself in order to use a proxy.\"",
227 "spec_title": "RFC7231#6.3.2",
228 "spec_href": "http://tools.ietf.org/html/rfc7231#section-6.3.2"
229 },
230 "408": {
231 "code": 408,
232 "text": "Request Timeout",
233 "description": "\"The server did not receive a complete request message within the time that it was prepared to wait.\"",
234 "spec_title": "RFC7231#6.5.7",
235 "spec_href": "http://tools.ietf.org/html/rfc7231#section-6.5.7"
236 },
237 "409": {
238 "code": 409,
239 "text": "Conflict",
240 "description": "\"The request could not be completed due to a conflict with the current state of the resource.\"",
241 "spec_title": "RFC7231#6.5.8",
242 "spec_href": "http://tools.ietf.org/html/rfc7231#section-6.5.8"
243 },
244 "410": {
245 "code": 410,
246 "text": "Gone",
247 "description": "\"Access to the target resource is no longer available at the origin server and that this condition is likely to be permanent.\"",
248 "spec_title": "RFC7231#6.5.9",
249 "spec_href": "http://tools.ietf.org/html/rfc7231#section-6.5.9"
250 },
251 "411": {
252 "code": 411,
253 "text": "Length Required",
254 "description": "\"The server refuses to accept the request without a defined Content-Length.\"",
255 "spec_title": "RFC7231#6.5.10",
256 "spec_href": "http://tools.ietf.org/html/rfc7231#section-6.5.10"
257 },
258 "412": {
259 "code": 412,
260 "text": "Precondition Failed",
261 "description": "\"One or more preconditions given in the request header fields evaluated to false when tested on the server.\"",
262 "spec_title": "RFC7232#4.2",
263 "spec_href": "http://tools.ietf.org/html/rfc7232#section-4.2"
264 },
265 "413": {
266 "code": 413,
267 "text": "Payload Too Large",
268 "description": "\"The server is refusing to process a request because the request payload is larger than the server is willing or able to process.\"",
269 "spec_title": "RFC7231#6.5.11",
270 "spec_href": "http://tools.ietf.org/html/rfc7231#section-6.5.11"
271 },
272 "414": {
273 "code": 414,
274 "text": "URI Too Long",
275 "description": "\"The server is refusing to service the request because the request-target is longer than the server is willing to interpret.\"",
276 "spec_title": "RFC7231#6.5.12",
277 "spec_href": "http://tools.ietf.org/html/rfc7231#section-6.5.12"
278 },
279 "415": {
280 "code": 415,
281 "text": "Unsupported Media Type",
282 "description": "\"The origin server is refusing to service the request because the payload is in a format not supported by the target resource for this method.\"",
283 "spec_title": "RFC7231#6.5.13",
284 "spec_href": "http://tools.ietf.org/html/rfc7231#section-6.5.13"
285 },
286 "416": {
287 "code": 416,
288 "text": "Range Not Satisfiable",
289 "description": "\"None of the ranges in the request's Range header field overlap the current extent of the selected resource or that the set of ranges requested has been rejected due to invalid ranges or an excessive request of small or overlapping ranges.\"",
290 "spec_title": "RFC7233#4.4",
291 "spec_href": "http://tools.ietf.org/html/rfc7233#section-4.4"
292 },
293 "417": {
294 "code": 417,
295 "text": "Expectation Failed",
296 "description": "\"The expectation given in the request's Expect header field could not be met by at least one of the inbound servers.\"",
297 "spec_title": "RFC7231#6.5.14",
298 "spec_href": "http://tools.ietf.org/html/rfc7231#section-6.5.14"
299 },
300 "418": {
301 "code": 418,
302 "text": "I'm a teapot",
303 "description": "\"1988 April Fools Joke. Returned by tea pots requested to brew coffee.\"",
304 "spec_title": "RFC 2324",
305 "spec_href": "https://tools.ietf.org/html/rfc2324"
306 },
307 "426": {
308 "code": 426,
309 "text": "Upgrade Required",
310 "description": "\"The server refuses to perform the request using the current protocol but might be willing to do so after the client upgrades to a different protocol.\"",
311 "spec_title": "RFC7231#6.5.15",
312 "spec_href": "http://tools.ietf.org/html/rfc7231#section-6.5.15"
313 },
314 "500": {
315 "code": 500,
316 "text": "Internal Server Error",
317 "description": "\"The server encountered an unexpected condition that prevented it from fulfilling the request.\"",
318 "spec_title": "RFC7231#6.6.1",
319 "spec_href": "http://tools.ietf.org/html/rfc7231#section-6.6.1"
320 },
321 "501": {
322 "code": 501,
323 "text": "Not Implemented",
324 "description": "\"The server does not support the functionality required to fulfill the request.\"",
325 "spec_title": "RFC7231#6.6.2",
326 "spec_href": "http://tools.ietf.org/html/rfc7231#section-6.6.2"
327 },
328 "502": {
329 "code": 502,
330 "text": "Bad Gateway",
331 "description": "\"The server, while acting as a gateway or proxy, received an invalid response from an inbound server it accessed while attempting to fulfill the request.\"",
332 "spec_title": "RFC7231#6.6.3",
333 "spec_href": "http://tools.ietf.org/html/rfc7231#section-6.6.3"
334 },
335 "503": {
336 "code": 503,
337 "text": "Service Unavailable",
338 "description": "\"The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, which will likely be alleviated after some delay.\"",
339 "spec_title": "RFC7231#6.6.4",
340 "spec_href": "http://tools.ietf.org/html/rfc7231#section-6.6.4"
341 },
342 "504": {
343 "code": 504,
344 "text": "Gateway Time-out",
345 "description": "\"The server, while acting as a gateway or proxy, did not receive a timely response from an upstream server it needed to access in order to complete the request.\"",
346 "spec_title": "RFC7231#6.6.5",
347 "spec_href": "http://tools.ietf.org/html/rfc7231#section-6.6.5"
348 },
349 "505": {
350 "code": 505,
351 "text": "HTTP Version Not Supported",
352 "description": "\"The server does not support, or refuses to support, the protocol version that was used in the request message.\"",
353 "spec_title": "RFC7231#6.6.6",
354 "spec_href": "http://tools.ietf.org/html/rfc7231#section-6.6.6"
355 },
356 "102": {
357 "code": 102,
358 "text": "Processing",
359 "description": "\"An interim response to inform the client that the server has accepted the complete request, but has not yet completed it.\"",
360 "spec_title": "RFC5218#10.1",
361 "spec_href": "http://tools.ietf.org/html/rfc2518#section-10.1"
362 },
363 "207": {
364 "code": 207,
365 "text": "Multi-Status",
366 "description": "\"Status for multiple independent operations.\"",
367 "spec_title": "RFC5218#10.2",
368 "spec_href": "http://tools.ietf.org/html/rfc2518#section-10.2"
369 },
370 "226": {
371 "code": 226,
372 "text": "IM Used",
373 "description": "\"The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance.\"",
374 "spec_title": "RFC3229#10.4.1",
375 "spec_href": "http://tools.ietf.org/html/rfc3229#section-10.4.1"
376 },
377 "308": {
378 "code": 308,
379 "text": "Permanent Redirect",
380 "description": "\"The target resource has been assigned a new permanent URI and any future references to this resource SHOULD use one of the returned URIs. [...] This status code is similar to 301 Moved Permanently (Section 7.3.2 of rfc7231), except that it does not allow rewriting the request method from POST to GET.\"",
381 "spec_title": "RFC7238",
382 "spec_href": "http://tools.ietf.org/html/rfc7238"
383 },
384 "422": {
385 "code": 422,
386 "text": "Unprocessable Entity",
387 "description": "\"The server understands the content type of the request entity (hence a 415(Unsupported Media Type) status code is inappropriate), and the syntax of the request entity is correct (thus a 400 (Bad Request) status code is inappropriate) but was unable to process the contained instructions.\"",
388 "spec_title": "RFC5218#10.3",
389 "spec_href": "http://tools.ietf.org/html/rfc2518#section-10.3"
390 },
391 "423": {
392 "code": 423,
393 "text": "Locked",
394 "description": "\"The source or destination resource of a method is locked.\"",
395 "spec_title": "RFC5218#10.4",
396 "spec_href": "http://tools.ietf.org/html/rfc2518#section-10.4"
397 },
398 "424": {
399 "code": 424,
400 "text": "Failed Dependency",
401 "description": "\"The method could not be performed on the resource because the requested action depended on another action and that action failed.\"",
402 "spec_title": "RFC5218#10.5",
403 "spec_href": "http://tools.ietf.org/html/rfc2518#section-10.5"
404 },
405 "428": {
406 "code": 428,
407 "text": "Precondition Required",
408 "description": "\"The origin server requires the request to be conditional.\"",
409 "spec_title": "RFC6585#3",
410 "spec_href": "http://tools.ietf.org/html/rfc6585#section-3"
411 },
412 "429": {
413 "code": 429,
414 "text": "Too Many Requests",
415 "description": "\"The user has sent too many requests in a given amount of time (\"rate limiting\").\"",
416 "spec_title": "RFC6585#4",
417 "spec_href": "http://tools.ietf.org/html/rfc6585#section-4"
418 },
419 "431": {
420 "code": 431,
421 "text": "Request Header Fields Too Large",
422 "description": "\"The server is unwilling to process the request because its header fields are too large.\"",
423 "spec_title": "RFC6585#5",
424 "spec_href": "http://tools.ietf.org/html/rfc6585#section-5"
425 },
426 "451": {
427 "code": 451,
428 "text": "Unavailable For Legal Reasons",
429 "description": "\"The server is denying access to the resource in response to a legal demand.\"",
430 "spec_title": "draft-ietf-httpbis-legally-restricted-status",
431 "spec_href": "http://tools.ietf.org/html/draft-ietf-httpbis-legally-restricted-status"
432 },
433 "506": {
434 "code": 506,
435 "text": "Variant Also Negotiates",
436 "description": "\"The server has an internal configuration error: the chosen variant resource is configured to engage in transparent content negotiation itself, and is therefore not a proper end point in the negotiation process.\"",
437 "spec_title": "RFC2295#8.1",
438 "spec_href": "http://tools.ietf.org/html/rfc2295#section-8.1"
439 },
440 "507": {
441 "code": 507,
442 "text": "Insufficient Storage",
443 "description": "\The method could not be performed on the resource because the server is unable to store the representation needed to successfully complete the request.\"",
444 "spec_title": "RFC5218#10.6",
445 "spec_href": "http://tools.ietf.org/html/rfc2518#section-10.6"
446 },
447 "511": {
448 "code": 511,
449 "text": "Network Authentication Required",
450 "description": "\"The client needs to authenticate to gain network access.\"",
451 "spec_title": "RFC6585#6",
452 "spec_href": "http://tools.ietf.org/html/rfc6585#section-6"
453 }
454};
455//# sourceMappingURL=http-status-codes.js.map
\No newline at end of file