toolbox-x 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/dist/Color-B3mgF9Dh.d.cts +486 -0
- package/dist/Color-D38Xrw65.d.mts +486 -0
- package/dist/Stylog-Df7eq3-j.d.cts +519 -0
- package/dist/Stylog-jvlLcMQq.d.mts +519 -0
- package/dist/array-DvW0zIu6.d.mts +130 -0
- package/dist/array-rUnEVisO.d.cts +130 -0
- package/dist/basics-D_eSv0cu.cjs +132 -0
- package/dist/basics-Dp_aEK81.mjs +115 -0
- package/dist/basics-WEYWlnRO.d.cts +95 -0
- package/dist/basics-uBSfkBEI.d.mts +95 -0
- package/dist/case-BWIt8Ash.mjs +449 -0
- package/dist/case-C-S-b5YP.d.cts +327 -0
- package/dist/case-CS8Ii3A7.cjs +526 -0
- package/dist/case-CybASFPD.d.mts +327 -0
- package/dist/change-case.cjs +32 -0
- package/dist/change-case.d.cts +18 -0
- package/dist/change-case.d.mts +18 -0
- package/dist/change-case.mjs +19 -0
- package/dist/colors.cjs +574 -0
- package/dist/colors.d.cts +355 -0
- package/dist/colors.d.mts +355 -0
- package/dist/colors.mjs +547 -0
- package/dist/constants-2gAw23_7.mjs +144 -0
- package/dist/constants-B34K0QPi.d.cts +21 -0
- package/dist/constants-BIBDKY1u.cjs +924 -0
- package/dist/constants-BWT-810U.cjs +158 -0
- package/dist/constants-BwbHnXlM.mjs +662 -0
- package/dist/constants-BxN9l5el.cjs +74 -0
- package/dist/constants-CLS_bgKD.d.mts +847 -0
- package/dist/constants-D73iFu8g.mjs +171 -0
- package/dist/constants-DAfRxaa8.mjs +62 -0
- package/dist/constants-DQYeCjlx.cjs +207 -0
- package/dist/constants-Deeie-iH.d.mts +21 -0
- package/dist/constants-DpTG9RP6.d.mts +29 -0
- package/dist/constants-DqwnkJ_d.cjs +740 -0
- package/dist/constants-DvRUY_FY.cjs +150 -0
- package/dist/constants-VcRtQu0K.d.cts +29 -0
- package/dist/constants-X5hm1UtB.mjs +912 -0
- package/dist/constants-eNd-iYsV.mjs +134 -0
- package/dist/constants-qm8FafmD.d.cts +847 -0
- package/dist/constants.cjs +415 -0
- package/dist/constants.d.cts +184 -0
- package/dist/constants.d.mts +184 -0
- package/dist/constants.mjs +378 -0
- package/dist/convert-BOCgUv2D.cjs +252 -0
- package/dist/convert-Bn4jFomQ.mjs +169 -0
- package/dist/convert-BrzlG-m_.cjs +475 -0
- package/dist/convert-DhaUoPVU.mjs +368 -0
- package/dist/converter-1P90_RcP.d.mts +402 -0
- package/dist/converter-CmkcAppi.d.cts +402 -0
- package/dist/converter.cjs +780 -0
- package/dist/converter.d.cts +29 -0
- package/dist/converter.d.mts +29 -0
- package/dist/converter.mjs +771 -0
- package/dist/countries-CIpmtEzV.cjs +1469 -0
- package/dist/countries-Cy0xiqS3.mjs +1463 -0
- package/dist/css-colors-Bx947Ng3.d.cts +179 -0
- package/dist/css-colors-CXCDqQbG.cjs +186 -0
- package/dist/css-colors-CXTp1vvy.d.mts +179 -0
- package/dist/css-colors-DfUW3nTR.mjs +180 -0
- package/dist/date.cjs +332 -0
- package/dist/date.d.cts +213 -0
- package/dist/date.d.mts +213 -0
- package/dist/date.mjs +298 -0
- package/dist/dom.cjs +461 -0
- package/dist/dom.d.cts +228 -0
- package/dist/dom.d.mts +228 -0
- package/dist/dom.mjs +429 -0
- package/dist/form-BMFVGUrN.d.mts +118 -0
- package/dist/form-DRFbryvK.d.cts +118 -0
- package/dist/guards-3kaUX66g.mjs +157 -0
- package/dist/guards-C8gkvIHb.cjs +240 -0
- package/dist/guards-DdyU4h4o.mjs +110 -0
- package/dist/guards-Efhp1mNy.cjs +151 -0
- package/dist/guards.cjs +172 -0
- package/dist/guards.d.cts +399 -0
- package/dist/guards.d.mts +399 -0
- package/dist/guards.mjs +75 -0
- package/dist/hash-B6JPEyAz.d.mts +131 -0
- package/dist/hash-NTpeKYB_.d.cts +131 -0
- package/dist/hash.cjs +2126 -0
- package/dist/hash.d.cts +1239 -0
- package/dist/hash.d.mts +1239 -0
- package/dist/hash.mjs +2095 -0
- package/dist/http-status-BAZdtr7-.d.mts +65 -0
- package/dist/http-status-U_3MtoGb.d.cts +65 -0
- package/dist/http-status.cjs +173 -0
- package/dist/http-status.d.cts +142 -0
- package/dist/http-status.d.mts +142 -0
- package/dist/http-status.mjs +171 -0
- package/dist/index.cjs +2551 -0
- package/dist/index.d.cts +1493 -0
- package/dist/index.d.mts +1493 -0
- package/dist/index.mjs +2357 -0
- package/dist/object-B0TV3eHx.d.mts +8052 -0
- package/dist/object-Blq0Amdv.d.cts +8052 -0
- package/dist/objectify-CDs0Fbr1.mjs +417 -0
- package/dist/objectify-DIJ-OBmo.cjs +524 -0
- package/dist/paginator.cjs +245 -0
- package/dist/paginator.d.cts +144 -0
- package/dist/paginator.d.mts +144 -0
- package/dist/paginator.mjs +243 -0
- package/dist/parse-2ubxXZRp.cjs +211 -0
- package/dist/parse-N7g942uy.mjs +164 -0
- package/dist/pluralizer-BjMIc6uT.d.mts +42 -0
- package/dist/pluralizer-Cb6ZmrDl.d.cts +42 -0
- package/dist/pluralizer.cjs +678 -0
- package/dist/pluralizer.d.cts +152 -0
- package/dist/pluralizer.d.mts +152 -0
- package/dist/pluralizer.mjs +676 -0
- package/dist/primitives-B26uZolQ.cjs +228 -0
- package/dist/primitives-KsFUp3kQ.mjs +144 -0
- package/dist/specials-D48_IZbd.d.mts +108 -0
- package/dist/specials-DzLr1ZgU.cjs +477 -0
- package/dist/specials-LVONlKbQ.d.cts +108 -0
- package/dist/specials-uhDuRg8H.mjs +292 -0
- package/dist/string-CBAbxaG1.d.mts +258 -0
- package/dist/string-CsNsm_65.d.cts +258 -0
- package/dist/stylog.cjs +621 -0
- package/dist/stylog.d.cts +49 -0
- package/dist/stylog.d.mts +49 -0
- package/dist/stylog.mjs +614 -0
- package/dist/timezone-B2OYK6Fh.mjs +5589 -0
- package/dist/timezone-Beh9IGpw.cjs +5625 -0
- package/dist/types/array.cjs +16 -0
- package/dist/types/array.d.cts +18 -0
- package/dist/types/array.d.mts +18 -0
- package/dist/types/array.mjs +17 -0
- package/dist/types/colors.cjs +16 -0
- package/dist/types/colors.d.cts +18 -0
- package/dist/types/colors.d.mts +18 -0
- package/dist/types/colors.mjs +17 -0
- package/dist/types/converter.cjs +16 -0
- package/dist/types/converter.d.cts +18 -0
- package/dist/types/converter.d.mts +18 -0
- package/dist/types/converter.mjs +17 -0
- package/dist/types/form.cjs +16 -0
- package/dist/types/form.d.cts +18 -0
- package/dist/types/form.d.mts +18 -0
- package/dist/types/form.mjs +17 -0
- package/dist/types/hash.cjs +16 -0
- package/dist/types/hash.d.cts +18 -0
- package/dist/types/hash.d.mts +18 -0
- package/dist/types/hash.mjs +17 -0
- package/dist/types/http-status.cjs +16 -0
- package/dist/types/http-status.d.cts +18 -0
- package/dist/types/http-status.d.mts +18 -0
- package/dist/types/http-status.mjs +17 -0
- package/dist/types/index.cjs +16 -0
- package/dist/types/index.d.cts +18 -0
- package/dist/types/index.d.mts +18 -0
- package/dist/types/index.mjs +17 -0
- package/dist/types/number.cjs +16 -0
- package/dist/types/number.d.cts +18 -0
- package/dist/types/number.d.mts +18 -0
- package/dist/types/number.mjs +17 -0
- package/dist/types/object.cjs +16 -0
- package/dist/types/object.d.cts +18 -0
- package/dist/types/object.d.mts +18 -0
- package/dist/types/object.mjs +17 -0
- package/dist/types/pluralizer.cjs +16 -0
- package/dist/types/pluralizer.d.cts +18 -0
- package/dist/types/pluralizer.d.mts +18 -0
- package/dist/types/pluralizer.mjs +17 -0
- package/dist/types/string.cjs +16 -0
- package/dist/types/string.d.cts +18 -0
- package/dist/types/string.d.mts +18 -0
- package/dist/types/string.mjs +17 -0
- package/dist/types/stylog.cjs +16 -0
- package/dist/types/stylog.d.cts +18 -0
- package/dist/types/stylog.d.mts +18 -0
- package/dist/types/stylog.mjs +17 -0
- package/dist/types/utils.cjs +16 -0
- package/dist/types/utils.d.cts +18 -0
- package/dist/types/utils.d.mts +18 -0
- package/dist/types/utils.mjs +17 -0
- package/dist/types/verbalizer.cjs +16 -0
- package/dist/types/verbalizer.d.cts +30 -0
- package/dist/types/verbalizer.d.mts +30 -0
- package/dist/types/verbalizer.mjs +17 -0
- package/dist/utilities-CLUmdQeV.cjs +140 -0
- package/dist/utilities-m5yFKqLd.mjs +105 -0
- package/dist/utils-ClW9LA6f.mjs +449 -0
- package/dist/utils-DLFRgXUC.cjs +568 -0
- package/dist/verbalizer.cjs +998 -0
- package/dist/verbalizer.d.cts +148 -0
- package/dist/verbalizer.d.mts +148 -0
- package/dist/verbalizer.mjs +996 -0
- package/package.json +249 -0
|
@@ -0,0 +1,847 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026 - present Nazmul Hassan
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
//#region src/http-status/constants.d.ts
|
|
18
|
+
/** HTTP status data from {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status MDN} */
|
|
19
|
+
declare const HTTP_STATUS_DATA: readonly [{
|
|
20
|
+
readonly category: "informational";
|
|
21
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/100";
|
|
22
|
+
readonly code: 100;
|
|
23
|
+
readonly name: "CONTINUE";
|
|
24
|
+
readonly readableName: "Continue";
|
|
25
|
+
readonly message: "Continue the request";
|
|
26
|
+
readonly description: "This interim response indicates that the client should continue the request or ignore the response if the request is already finished.";
|
|
27
|
+
}, {
|
|
28
|
+
readonly category: "informational";
|
|
29
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/101";
|
|
30
|
+
readonly code: 101;
|
|
31
|
+
readonly name: "SWITCHING_PROTOCOLS";
|
|
32
|
+
readonly readableName: "Switching Protocols";
|
|
33
|
+
readonly message: "Switching Protocols";
|
|
34
|
+
readonly description: "This code is sent in response to an Upgrade request header from the client and indicates the protocol the server is switching to.";
|
|
35
|
+
}, {
|
|
36
|
+
readonly category: "informational";
|
|
37
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/102";
|
|
38
|
+
readonly code: 102;
|
|
39
|
+
readonly name: "PROCESSING";
|
|
40
|
+
readonly readableName: "Processing";
|
|
41
|
+
readonly message: "Processing";
|
|
42
|
+
readonly description: "This code was used in WebDAV contexts to indicate that a request has been received by the server, but no status was available at the time of the response.";
|
|
43
|
+
}, {
|
|
44
|
+
readonly category: "informational";
|
|
45
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/103";
|
|
46
|
+
readonly code: 103;
|
|
47
|
+
readonly name: "EARLY_HINTS";
|
|
48
|
+
readonly readableName: "Early Hints";
|
|
49
|
+
readonly message: "Early Hints";
|
|
50
|
+
readonly description: "This status code is primarily intended to be used with the Link header, letting the user agent start preloading resources while the server prepares a response or preconnect to an origin from which the page will need resources.";
|
|
51
|
+
}, {
|
|
52
|
+
readonly category: "success";
|
|
53
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/200";
|
|
54
|
+
readonly code: 200;
|
|
55
|
+
readonly name: "OK";
|
|
56
|
+
readonly readableName: "Ok";
|
|
57
|
+
readonly message: "The request succeeded";
|
|
58
|
+
readonly description: "The request succeeded. The result and meaning of \"success\" depends on the HTTP method: GET: The resource has been fetched and transmitted in the message body. HEAD: Representation headers are included in the response without any message body. PUT or POST: The resource describing the result of the action is transmitted in the message body. TRACE: The message body contains the request as received by the server.";
|
|
59
|
+
}, {
|
|
60
|
+
readonly category: "success";
|
|
61
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/201";
|
|
62
|
+
readonly code: 201;
|
|
63
|
+
readonly name: "CREATED";
|
|
64
|
+
readonly readableName: "Created";
|
|
65
|
+
readonly message: "The request succeeded, and a new resource was created";
|
|
66
|
+
readonly description: "The request succeeded, and a new resource was created as a result. This is typically the response sent after POST requests, or some PUT requests.";
|
|
67
|
+
}, {
|
|
68
|
+
readonly category: "success";
|
|
69
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/202";
|
|
70
|
+
readonly code: 202;
|
|
71
|
+
readonly name: "ACCEPTED";
|
|
72
|
+
readonly readableName: "Accepted";
|
|
73
|
+
readonly message: "The request has been received but not yet acted upon";
|
|
74
|
+
readonly description: "The request has been received but not yet acted upon. It is noncommittal, since there is no way in HTTP to later send an asynchronous response indicating the outcome of the request. It is intended for cases where another process or server handles the request, or for batch processing.";
|
|
75
|
+
}, {
|
|
76
|
+
readonly category: "success";
|
|
77
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/203";
|
|
78
|
+
readonly code: 203;
|
|
79
|
+
readonly name: "NON_AUTHORITATIVE_INFORMATION";
|
|
80
|
+
readonly readableName: "Non-Authoritative Information";
|
|
81
|
+
readonly message: "Non-Authoritative Information";
|
|
82
|
+
readonly description: "This response code means the returned metadata is not exactly the same as is available from the origin server, but is collected from a local or a third-party copy. This is mostly used for mirrors or backups of another resource. Except for that specific case, the 200 OK response is preferred to this status.";
|
|
83
|
+
}, {
|
|
84
|
+
readonly category: "success";
|
|
85
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/204";
|
|
86
|
+
readonly code: 204;
|
|
87
|
+
readonly name: "NO_CONTENT";
|
|
88
|
+
readonly readableName: "No Content";
|
|
89
|
+
readonly message: "There is no content to send for this request";
|
|
90
|
+
readonly description: "There is no content to send for this request, but the headers are useful. The user agent may update its cached headers for this resource with the new ones.";
|
|
91
|
+
}, {
|
|
92
|
+
readonly category: "success";
|
|
93
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/205";
|
|
94
|
+
readonly code: 205;
|
|
95
|
+
readonly name: "RESET_CONTENT";
|
|
96
|
+
readonly readableName: "Reset Content";
|
|
97
|
+
readonly message: "Reset Content";
|
|
98
|
+
readonly description: "Tells the user agent to reset the document which sent this request.";
|
|
99
|
+
}, {
|
|
100
|
+
readonly category: "success";
|
|
101
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/206";
|
|
102
|
+
readonly code: 206;
|
|
103
|
+
readonly name: "PARTIAL_CONTENT";
|
|
104
|
+
readonly readableName: "Partial Content";
|
|
105
|
+
readonly message: "Partial Content";
|
|
106
|
+
readonly description: "This response code is used in response to a range request when the client has requested a part or parts of a resource.";
|
|
107
|
+
}, {
|
|
108
|
+
readonly category: "success";
|
|
109
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/207";
|
|
110
|
+
readonly code: 207;
|
|
111
|
+
readonly name: "MULTI_STATUS";
|
|
112
|
+
readonly readableName: "Multi-Status";
|
|
113
|
+
readonly message: "Multi-Status";
|
|
114
|
+
readonly description: "Conveys information about multiple resources, for situations where multiple status codes might be appropriate.";
|
|
115
|
+
}, {
|
|
116
|
+
readonly category: "success";
|
|
117
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/208";
|
|
118
|
+
readonly code: 208;
|
|
119
|
+
readonly name: "ALREADY_REPORTED";
|
|
120
|
+
readonly readableName: "Already Reported";
|
|
121
|
+
readonly message: "Already Reported";
|
|
122
|
+
readonly description: "Used inside a \"<dav:propstat>\" response element to avoid repeatedly enumerating the internal members of multiple bindings to the same collection.";
|
|
123
|
+
}, {
|
|
124
|
+
readonly category: "success";
|
|
125
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/226";
|
|
126
|
+
readonly code: 226;
|
|
127
|
+
readonly name: "IM_USED";
|
|
128
|
+
readonly readableName: "IM Used";
|
|
129
|
+
readonly message: "Instance-Manipulations applied to the current instance";
|
|
130
|
+
readonly 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.";
|
|
131
|
+
}, {
|
|
132
|
+
readonly category: "redirection";
|
|
133
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/300";
|
|
134
|
+
readonly code: 300;
|
|
135
|
+
readonly name: "MULTIPLE_CHOICES";
|
|
136
|
+
readonly readableName: "Multiple Choices";
|
|
137
|
+
readonly message: "Multiple Choices";
|
|
138
|
+
readonly description: "In agent-driven content negotiation, the request has more than one possible response and the user agent or user should choose one of them. There is no standardized way for clients to automatically choose one of the responses, so this is rarely used.";
|
|
139
|
+
}, {
|
|
140
|
+
readonly category: "redirection";
|
|
141
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/301";
|
|
142
|
+
readonly code: 301;
|
|
143
|
+
readonly name: "MOVED_PERMANENTLY";
|
|
144
|
+
readonly readableName: "Moved Permanently";
|
|
145
|
+
readonly message: "The URL of the requested resource has been changed permanently";
|
|
146
|
+
readonly description: "The URL of the requested resource has been changed permanently. The new URL is given in the response.";
|
|
147
|
+
}, {
|
|
148
|
+
readonly category: "redirection";
|
|
149
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/302";
|
|
150
|
+
readonly code: 302;
|
|
151
|
+
readonly name: "FOUND";
|
|
152
|
+
readonly readableName: "Found";
|
|
153
|
+
readonly message: "URI of requested resource has been changed temporarily";
|
|
154
|
+
readonly description: "This response code means that the URI of requested resource has been changed temporarily. Further changes in the URI might be made in the future, so the same URI should be used by the client in future requests.";
|
|
155
|
+
}, {
|
|
156
|
+
readonly category: "redirection";
|
|
157
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/303";
|
|
158
|
+
readonly code: 303;
|
|
159
|
+
readonly name: "SEE_OTHER";
|
|
160
|
+
readonly readableName: "See Other";
|
|
161
|
+
readonly message: "See Other";
|
|
162
|
+
readonly description: "The server sent this response to direct the client to get the requested resource at another URI with a GET request.";
|
|
163
|
+
}, {
|
|
164
|
+
readonly category: "redirection";
|
|
165
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/304";
|
|
166
|
+
readonly code: 304;
|
|
167
|
+
readonly name: "NOT_MODIFIED";
|
|
168
|
+
readonly readableName: "Not Modified";
|
|
169
|
+
readonly message: "Not Modified";
|
|
170
|
+
readonly description: "This is used for caching purposes. It tells the client that the response has not been modified, so the client can continue to use the same cached version of the response.";
|
|
171
|
+
}, {
|
|
172
|
+
readonly category: "redirection";
|
|
173
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status#305_use_proxy";
|
|
174
|
+
readonly code: 305;
|
|
175
|
+
readonly name: "USE_PROXY";
|
|
176
|
+
readonly readableName: "Use Proxy";
|
|
177
|
+
readonly message: "Use Proxy";
|
|
178
|
+
readonly description: "Defined in a previous version of the HTTP specification to indicate that a requested response must be accessed by a proxy. It has been deprecated due to security concerns regarding in-band configuration of a proxy.";
|
|
179
|
+
}, {
|
|
180
|
+
readonly category: "redirection";
|
|
181
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status#306_unused";
|
|
182
|
+
readonly code: 306;
|
|
183
|
+
readonly name: "UNUSED";
|
|
184
|
+
readonly readableName: "unused";
|
|
185
|
+
readonly message: "unused";
|
|
186
|
+
readonly description: "This response code is no longer used; but is reserved. It was used in a previous version of the HTTP/1.1 specification.";
|
|
187
|
+
}, {
|
|
188
|
+
readonly category: "redirection";
|
|
189
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/307";
|
|
190
|
+
readonly code: 307;
|
|
191
|
+
readonly name: "TEMPORARY_REDIRECT";
|
|
192
|
+
readonly readableName: "Temporary Redirect";
|
|
193
|
+
readonly message: "Temporary Redirect";
|
|
194
|
+
readonly description: "The server sends this response to direct the client to get the requested resource at another URI with the same method that was used in the prior request. This has the same semantics as the 302 Found response code, with the exception that the user agent must not change the HTTP method used: if a POST was used in the first request, a POST must be used in the redirected request.";
|
|
195
|
+
}, {
|
|
196
|
+
readonly category: "redirection";
|
|
197
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/308";
|
|
198
|
+
readonly code: 308;
|
|
199
|
+
readonly name: "PERMANENT_REDIRECT";
|
|
200
|
+
readonly readableName: "Permanent Redirect";
|
|
201
|
+
readonly message: "Permanent Redirect";
|
|
202
|
+
readonly description: "This means that the resource is now permanently located at another URI, specified by the Location response header. This has the same semantics as the 301 Moved Permanently HTTP response code, with the exception that the user agent must not change the HTTP method used: if a POST was used in the first request, a POST must be used in the second request.";
|
|
203
|
+
}, {
|
|
204
|
+
readonly category: "clientError";
|
|
205
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/400";
|
|
206
|
+
readonly code: 400;
|
|
207
|
+
readonly name: "BAD_REQUEST";
|
|
208
|
+
readonly readableName: "Bad Request";
|
|
209
|
+
readonly message: "Bad Request";
|
|
210
|
+
readonly description: "The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).";
|
|
211
|
+
}, {
|
|
212
|
+
readonly category: "clientError";
|
|
213
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/401";
|
|
214
|
+
readonly code: 401;
|
|
215
|
+
readonly name: "UNAUTHORIZED";
|
|
216
|
+
readonly readableName: "Unauthorized";
|
|
217
|
+
readonly message: "Unauthorized request";
|
|
218
|
+
readonly description: "Although the HTTP standard specifies \"unauthorized\", semantically this response means \"unauthenticated\". That is, the client must authenticate itself to get the requested response.";
|
|
219
|
+
}, {
|
|
220
|
+
readonly category: "clientError";
|
|
221
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/402";
|
|
222
|
+
readonly code: 402;
|
|
223
|
+
readonly name: "PAYMENT_REQUIRED";
|
|
224
|
+
readonly readableName: "Payment Required";
|
|
225
|
+
readonly message: "Payment Required";
|
|
226
|
+
readonly description: "The initial purpose of this code was for digital payment systems, however this status code is rarely used and no standard convention exists.";
|
|
227
|
+
}, {
|
|
228
|
+
readonly category: "clientError";
|
|
229
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/403";
|
|
230
|
+
readonly code: 403;
|
|
231
|
+
readonly name: "FORBIDDEN";
|
|
232
|
+
readonly readableName: "Forbidden";
|
|
233
|
+
readonly message: "Forbidden request";
|
|
234
|
+
readonly description: "The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource. Unlike 401 Unauthorized, the client's identity is known to the server.";
|
|
235
|
+
}, {
|
|
236
|
+
readonly category: "clientError";
|
|
237
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/404";
|
|
238
|
+
readonly code: 404;
|
|
239
|
+
readonly name: "NOT_FOUND";
|
|
240
|
+
readonly readableName: "Not Found";
|
|
241
|
+
readonly message: "Not Found";
|
|
242
|
+
readonly description: "The server cannot find the requested resource. In the browser, this means the URL is not recognized. In an API, this can also mean that the endpoint is valid but the resource itself does not exist. Servers may also send this response instead of 403 Forbidden to hide the existence of a resource from an unauthorized client. This response code is probably the most well known due to its frequent occurrence on the web.";
|
|
243
|
+
}, {
|
|
244
|
+
readonly category: "clientError";
|
|
245
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/405";
|
|
246
|
+
readonly code: 405;
|
|
247
|
+
readonly name: "METHOD_NOT_ALLOWED";
|
|
248
|
+
readonly readableName: "Method Not Allowed";
|
|
249
|
+
readonly message: "Method Not Allowed";
|
|
250
|
+
readonly description: "The request method is known by the server but is not supported by the target resource. For example, an API may not allow DELETE on a resource, or the TRACE method entirely.";
|
|
251
|
+
}, {
|
|
252
|
+
readonly category: "clientError";
|
|
253
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/406";
|
|
254
|
+
readonly code: 406;
|
|
255
|
+
readonly name: "NOT_ACCEPTABLE";
|
|
256
|
+
readonly readableName: "Not Acceptable";
|
|
257
|
+
readonly message: "Not Acceptable";
|
|
258
|
+
readonly description: "This response is sent when the web server, after performing server-driven content negotiation, doesn't find any content that conforms to the criteria given by the user agent.";
|
|
259
|
+
}, {
|
|
260
|
+
readonly category: "clientError";
|
|
261
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/407";
|
|
262
|
+
readonly code: 407;
|
|
263
|
+
readonly name: "PROXY_AUTHENTICATION_REQUIRED";
|
|
264
|
+
readonly readableName: "Proxy Authentication Required";
|
|
265
|
+
readonly message: "Proxy Authentication Required";
|
|
266
|
+
readonly description: "This is similar to 401 Unauthorized but authentication is needed to be done by a proxy.";
|
|
267
|
+
}, {
|
|
268
|
+
readonly category: "clientError";
|
|
269
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/408";
|
|
270
|
+
readonly code: 408;
|
|
271
|
+
readonly name: "REQUEST_TIMEOUT";
|
|
272
|
+
readonly readableName: "Request Timeout";
|
|
273
|
+
readonly message: "Request Timeout";
|
|
274
|
+
readonly description: "This response is sent on an idle connection by some servers, even without any previous request by the client. It means that the server would like to shut down this unused connection. This response is used much more since some browsers use HTTP pre-connection mechanisms to speed up browsing. Some servers may shut down a connection without sending this message.";
|
|
275
|
+
}, {
|
|
276
|
+
readonly category: "clientError";
|
|
277
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/409";
|
|
278
|
+
readonly code: 409;
|
|
279
|
+
readonly name: "CONFLICT";
|
|
280
|
+
readonly readableName: "Conflict";
|
|
281
|
+
readonly message: "Conflict";
|
|
282
|
+
readonly description: "This response is sent when a request conflicts with the current state of the server. In WebDAV remote web authoring, 409 responses are errors sent to the client so that a user might be able to resolve a conflict and resubmit the request.";
|
|
283
|
+
}, {
|
|
284
|
+
readonly category: "clientError";
|
|
285
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/410";
|
|
286
|
+
readonly code: 410;
|
|
287
|
+
readonly name: "GONE";
|
|
288
|
+
readonly readableName: "Gone";
|
|
289
|
+
readonly message: "Content has been permanently deleted";
|
|
290
|
+
readonly description: "This response is sent when the requested content has been permanently deleted from server, with no forwarding address. Clients are expected to remove their caches and links to the resource. The HTTP specification intends this status code to be used for \"limited-time, promotional services\". APIs should not feel compelled to indicate resources that have been deleted with this status code.";
|
|
291
|
+
}, {
|
|
292
|
+
readonly category: "clientError";
|
|
293
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/411";
|
|
294
|
+
readonly code: 411;
|
|
295
|
+
readonly name: "LENGTH_REQUIRED";
|
|
296
|
+
readonly readableName: "Length Required";
|
|
297
|
+
readonly message: "Length Required";
|
|
298
|
+
readonly description: "Server rejected the request because the Content-Length header field is not defined and the server requires it.";
|
|
299
|
+
}, {
|
|
300
|
+
readonly category: "clientError";
|
|
301
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/412";
|
|
302
|
+
readonly code: 412;
|
|
303
|
+
readonly name: "PRECONDITION_FAILED";
|
|
304
|
+
readonly readableName: "Precondition Failed";
|
|
305
|
+
readonly message: "Precondition Failed";
|
|
306
|
+
readonly description: "In conditional requests, the client has indicated preconditions in its headers which the server does not meet.";
|
|
307
|
+
}, {
|
|
308
|
+
readonly category: "clientError";
|
|
309
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/413";
|
|
310
|
+
readonly code: 413;
|
|
311
|
+
readonly name: "CONTENT_TOO_LARGE";
|
|
312
|
+
readonly readableName: "Content Too Large";
|
|
313
|
+
readonly message: "Content Too Large";
|
|
314
|
+
readonly description: "The request body is larger than limits defined by server. The server might close the connection or return an Retry-After header field.";
|
|
315
|
+
}, {
|
|
316
|
+
readonly category: "clientError";
|
|
317
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/414";
|
|
318
|
+
readonly code: 414;
|
|
319
|
+
readonly name: "URI_TOO_LONG";
|
|
320
|
+
readonly readableName: "URI Too Long";
|
|
321
|
+
readonly message: "URI Too Long";
|
|
322
|
+
readonly description: "The URI requested by the client is longer than the server is willing to interpret.";
|
|
323
|
+
}, {
|
|
324
|
+
readonly category: "clientError";
|
|
325
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/415";
|
|
326
|
+
readonly code: 415;
|
|
327
|
+
readonly name: "UNSUPPORTED_MEDIA_TYPE";
|
|
328
|
+
readonly readableName: "Unsupported Media Type";
|
|
329
|
+
readonly message: "Unsupported Media Type";
|
|
330
|
+
readonly description: "The media format of the requested data is not supported by the server, so the server is rejecting the request.";
|
|
331
|
+
}, {
|
|
332
|
+
readonly category: "clientError";
|
|
333
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/416";
|
|
334
|
+
readonly code: 416;
|
|
335
|
+
readonly name: "RANGE_NOT_SATISFIABLE";
|
|
336
|
+
readonly readableName: "Range Not Satisfiable";
|
|
337
|
+
readonly message: "Range Not Satisfiable";
|
|
338
|
+
readonly description: "The ranges specified by the Range header field in the request cannot be fulfilled. It's possible that the range is outside the size of the target resource's data.";
|
|
339
|
+
}, {
|
|
340
|
+
readonly category: "clientError";
|
|
341
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/417";
|
|
342
|
+
readonly code: 417;
|
|
343
|
+
readonly name: "EXPECTATION_FAILED";
|
|
344
|
+
readonly readableName: "Expectation Failed";
|
|
345
|
+
readonly message: "Expectation Failed";
|
|
346
|
+
readonly description: "This response code means the expectation indicated by the Expect request header field cannot be met by the server.";
|
|
347
|
+
}, {
|
|
348
|
+
readonly category: "clientError";
|
|
349
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/418";
|
|
350
|
+
readonly code: 418;
|
|
351
|
+
readonly name: "I_M_A_TEAPOT";
|
|
352
|
+
readonly readableName: "I'm a teapot";
|
|
353
|
+
readonly message: "I'm a teapot";
|
|
354
|
+
readonly description: "The server refuses the attempt to brew coffee with a teapot.";
|
|
355
|
+
}, {
|
|
356
|
+
readonly category: "clientError";
|
|
357
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/421";
|
|
358
|
+
readonly code: 421;
|
|
359
|
+
readonly name: "MISDIRECTED_REQUEST";
|
|
360
|
+
readonly readableName: "Misdirected Request";
|
|
361
|
+
readonly message: "Misdirected Request";
|
|
362
|
+
readonly description: "The request was directed at a server that is not able to produce a response. This can be sent by a server that is not configured to produce responses for the combination of scheme and authority that are included in the request URI.";
|
|
363
|
+
}, {
|
|
364
|
+
readonly category: "clientError";
|
|
365
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/422";
|
|
366
|
+
readonly code: 422;
|
|
367
|
+
readonly name: "UNPROCESSABLE_CONTENT";
|
|
368
|
+
readonly readableName: "Unprocessable Content";
|
|
369
|
+
readonly message: "Unprocessable Content";
|
|
370
|
+
readonly description: "The request was well-formed but was unable to be followed due to semantic errors.";
|
|
371
|
+
}, {
|
|
372
|
+
readonly category: "clientError";
|
|
373
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/423";
|
|
374
|
+
readonly code: 423;
|
|
375
|
+
readonly name: "LOCKED";
|
|
376
|
+
readonly readableName: "Locked";
|
|
377
|
+
readonly message: "The resource is locked";
|
|
378
|
+
readonly description: "The resource that is being accessed is locked.";
|
|
379
|
+
}, {
|
|
380
|
+
readonly category: "clientError";
|
|
381
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/424";
|
|
382
|
+
readonly code: 424;
|
|
383
|
+
readonly name: "FAILED_DEPENDENCY";
|
|
384
|
+
readonly readableName: "Failed Dependency";
|
|
385
|
+
readonly message: "Failed Dependency";
|
|
386
|
+
readonly description: "The request failed due to failure of a previous request.";
|
|
387
|
+
}, {
|
|
388
|
+
readonly category: "clientError";
|
|
389
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/425";
|
|
390
|
+
readonly code: 425;
|
|
391
|
+
readonly name: "TOO_EARLY";
|
|
392
|
+
readonly readableName: "Too Early";
|
|
393
|
+
readonly message: "Too Early";
|
|
394
|
+
readonly description: "Indicates that the server is unwilling to risk processing a request that might be replayed.";
|
|
395
|
+
}, {
|
|
396
|
+
readonly category: "clientError";
|
|
397
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/426";
|
|
398
|
+
readonly code: 426;
|
|
399
|
+
readonly name: "UPGRADE_REQUIRED";
|
|
400
|
+
readonly readableName: "Upgrade Required";
|
|
401
|
+
readonly message: "Upgrade Required";
|
|
402
|
+
readonly 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. The server sends an Upgrade header in a 426 response to indicate the required protocol(s).";
|
|
403
|
+
}, {
|
|
404
|
+
readonly category: "clientError";
|
|
405
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/428";
|
|
406
|
+
readonly code: 428;
|
|
407
|
+
readonly name: "PRECONDITION_REQUIRED";
|
|
408
|
+
readonly readableName: "Precondition Required";
|
|
409
|
+
readonly message: "Precondition Required";
|
|
410
|
+
readonly description: "The origin server requires the request to be conditional. This response is intended to prevent the 'lost update' problem, where a client GETs a resource's state, modifies it and PUTs it back to the server, when meanwhile a third party has modified the state on the server, leading to a conflict.";
|
|
411
|
+
}, {
|
|
412
|
+
readonly category: "clientError";
|
|
413
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/429";
|
|
414
|
+
readonly code: 429;
|
|
415
|
+
readonly name: "TOO_MANY_REQUESTS";
|
|
416
|
+
readonly readableName: "Too Many Requests";
|
|
417
|
+
readonly message: "Too Many Requests";
|
|
418
|
+
readonly description: "The user has sent too many requests in a given amount of time (rate limiting).";
|
|
419
|
+
}, {
|
|
420
|
+
readonly category: "clientError";
|
|
421
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/431";
|
|
422
|
+
readonly code: 431;
|
|
423
|
+
readonly name: "REQUEST_HEADER_FIELDS_TOO_LARGE";
|
|
424
|
+
readonly readableName: "Request Header Fields Too Large";
|
|
425
|
+
readonly message: "Request Header Fields Too Large";
|
|
426
|
+
readonly description: "The server is unwilling to process the request because its header fields are too large. The request may be resubmitted after reducing the size of the request header fields.";
|
|
427
|
+
}, {
|
|
428
|
+
readonly category: "clientError";
|
|
429
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/451";
|
|
430
|
+
readonly code: 451;
|
|
431
|
+
readonly name: "UNAVAILABLE_FOR_LEGAL_REASONS";
|
|
432
|
+
readonly readableName: "Unavailable For Legal Reasons";
|
|
433
|
+
readonly message: "Unavailable For Legal Reasons";
|
|
434
|
+
readonly description: "The user agent requested a resource that cannot legally be provided, such as a web page censored by a government.";
|
|
435
|
+
}, {
|
|
436
|
+
readonly category: "serverError";
|
|
437
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/500";
|
|
438
|
+
readonly code: 500;
|
|
439
|
+
readonly name: "INTERNAL_SERVER_ERROR";
|
|
440
|
+
readonly readableName: "Internal Server Error";
|
|
441
|
+
readonly message: "Internal Server Error";
|
|
442
|
+
readonly description: "The server has encountered a situation it does not know how to handle. This error is generic, indicating that the server cannot find a more appropriate 5XX status code to respond with.";
|
|
443
|
+
}, {
|
|
444
|
+
readonly category: "serverError";
|
|
445
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/501";
|
|
446
|
+
readonly code: 501;
|
|
447
|
+
readonly name: "NOT_IMPLEMENTED";
|
|
448
|
+
readonly readableName: "Not Implemented";
|
|
449
|
+
readonly message: "Not Implemented";
|
|
450
|
+
readonly description: "The request method is not supported by the server and cannot be handled. The only methods that servers are required to support (and therefore that must not return this code) are GET and HEAD.";
|
|
451
|
+
}, {
|
|
452
|
+
readonly category: "serverError";
|
|
453
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/502";
|
|
454
|
+
readonly code: 502;
|
|
455
|
+
readonly name: "BAD_GATEWAY";
|
|
456
|
+
readonly readableName: "Bad Gateway";
|
|
457
|
+
readonly message: "Bad Gateway";
|
|
458
|
+
readonly description: "This error response means that the server, while working as a gateway to get a response needed to handle the request, got an invalid response.";
|
|
459
|
+
}, {
|
|
460
|
+
readonly category: "serverError";
|
|
461
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/503";
|
|
462
|
+
readonly code: 503;
|
|
463
|
+
readonly name: "SERVICE_UNAVAILABLE";
|
|
464
|
+
readonly readableName: "Service Unavailable";
|
|
465
|
+
readonly message: "Service Unavailable";
|
|
466
|
+
readonly description: "The server is not ready to handle the request. Common causes are a server that is down for maintenance or that is overloaded. Note that together with this response, a user-friendly page explaining the problem should be sent. This response should be used for temporary conditions and the Retry-After HTTP header should, if possible, contain the estimated time before the recovery of the service. The webmaster must also take care about the caching-related headers that are sent along with this response, as these temporary condition responses should usually not be cached.";
|
|
467
|
+
}, {
|
|
468
|
+
readonly category: "serverError";
|
|
469
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/504";
|
|
470
|
+
readonly code: 504;
|
|
471
|
+
readonly name: "GATEWAY_TIMEOUT";
|
|
472
|
+
readonly readableName: "Gateway Timeout";
|
|
473
|
+
readonly message: "Gateway Timeout";
|
|
474
|
+
readonly description: "This error response is given when the server is acting as a gateway and cannot get a response in time.";
|
|
475
|
+
}, {
|
|
476
|
+
readonly category: "serverError";
|
|
477
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/505";
|
|
478
|
+
readonly code: 505;
|
|
479
|
+
readonly name: "HTTP_VERSION_NOT_SUPPORTED";
|
|
480
|
+
readonly readableName: "HTTP Version Not Supported";
|
|
481
|
+
readonly message: "HTTP Version Not Supported";
|
|
482
|
+
readonly description: "The HTTP version used in the request is not supported by the server.";
|
|
483
|
+
}, {
|
|
484
|
+
readonly category: "serverError";
|
|
485
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/506";
|
|
486
|
+
readonly code: 506;
|
|
487
|
+
readonly name: "VARIANT_ALSO_NEGOTIATES";
|
|
488
|
+
readonly readableName: "Variant Also Negotiates";
|
|
489
|
+
readonly message: "Variant Also Negotiates";
|
|
490
|
+
readonly description: "The server has an internal configuration error: during content negotiation, the chosen variant is configured to engage in content negotiation itself, which results in circular references when creating responses.";
|
|
491
|
+
}, {
|
|
492
|
+
readonly category: "serverError";
|
|
493
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/507";
|
|
494
|
+
readonly code: 507;
|
|
495
|
+
readonly name: "INSUFFICIENT_STORAGE";
|
|
496
|
+
readonly readableName: "Insufficient Storage";
|
|
497
|
+
readonly message: "Insufficient Storage";
|
|
498
|
+
readonly 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.";
|
|
499
|
+
}, {
|
|
500
|
+
readonly category: "serverError";
|
|
501
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/508";
|
|
502
|
+
readonly code: 508;
|
|
503
|
+
readonly name: "LOOP_DETECTED";
|
|
504
|
+
readonly readableName: "Loop Detected";
|
|
505
|
+
readonly message: "Detected an infinite loop";
|
|
506
|
+
readonly description: "The server detected an infinite loop while processing the request.";
|
|
507
|
+
}, {
|
|
508
|
+
readonly category: "serverError";
|
|
509
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/510";
|
|
510
|
+
readonly code: 510;
|
|
511
|
+
readonly name: "NOT_EXTENDED";
|
|
512
|
+
readonly readableName: "Not Extended";
|
|
513
|
+
readonly message: "Not Extended";
|
|
514
|
+
readonly description: "The client request declares an HTTP Extension (RFC 2774) that should be used to process the request, but the extension is not supported.";
|
|
515
|
+
}, {
|
|
516
|
+
readonly category: "serverError";
|
|
517
|
+
readonly link: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/511";
|
|
518
|
+
readonly code: 511;
|
|
519
|
+
readonly name: "NETWORK_AUTHENTICATION_REQUIRED";
|
|
520
|
+
readonly readableName: "Network Authentication Required";
|
|
521
|
+
readonly message: "Network Authentication Required";
|
|
522
|
+
readonly description: "Indicates that the client needs to authenticate to gain network access.";
|
|
523
|
+
}];
|
|
524
|
+
/** List of {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status HTTP Status Names with Corresponding Codes} */
|
|
525
|
+
declare const HTTP_STATUS_CODES: Readonly<{
|
|
526
|
+
/**
|
|
527
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/100 Continue}
|
|
528
|
+
* - This interim response indicates that the client should continue the request or ignore the response if the request is already finished.
|
|
529
|
+
*/
|
|
530
|
+
readonly CONTINUE: 100;
|
|
531
|
+
/**
|
|
532
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/101 Switching Protocols}
|
|
533
|
+
* - This code is sent in response to an Upgrade request header from the client and indicates the protocol the server is switching to.
|
|
534
|
+
*/
|
|
535
|
+
readonly SWITCHING_PROTOCOLS: 101;
|
|
536
|
+
/**
|
|
537
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/102 Processing}
|
|
538
|
+
* @deprecated This code was used in WebDAV contexts to indicate that a request has been received by the server, but no status was available at the time of the response.
|
|
539
|
+
*/
|
|
540
|
+
readonly PROCESSING: 102;
|
|
541
|
+
/**
|
|
542
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/103 Early Hints}
|
|
543
|
+
* - This status code is primarily intended to be used with the Link header, letting the user agent start preloading resources while the server prepares a response or preconnect to an origin from which the page will need resources.
|
|
544
|
+
*/
|
|
545
|
+
readonly EARLY_HINTS: 103;
|
|
546
|
+
/**
|
|
547
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/200 OK}
|
|
548
|
+
* - The request succeeded. The result and meaning of "success" depends on the HTTP method:
|
|
549
|
+
* - GET: The resource has been fetched and transmitted in the message body.
|
|
550
|
+
* - HEAD: Representation headers are included in the response without any message body.
|
|
551
|
+
* - PUT or POST: The resource describing the result of the action is transmitted in the message body.
|
|
552
|
+
* - TRACE: The message body contains the request as received by the server.
|
|
553
|
+
*/
|
|
554
|
+
readonly OK: 200;
|
|
555
|
+
/**
|
|
556
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/201 Created}
|
|
557
|
+
* - The request succeeded, and a new resource was created as a result. This is typically the response sent after POST requests, or some PUT requests.
|
|
558
|
+
*/
|
|
559
|
+
readonly CREATED: 201;
|
|
560
|
+
/**
|
|
561
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/202 Accepted}
|
|
562
|
+
* - The request has been received but not yet acted upon. It is noncommittal, since there is no way in HTTP to later send an asynchronous response indicating the outcome of the request. It is intended for cases where another process or server handles the request, or for batch processing.
|
|
563
|
+
*/
|
|
564
|
+
readonly ACCEPTED: 202;
|
|
565
|
+
/**
|
|
566
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/203 Non-Authoritative Information}
|
|
567
|
+
* - This response code means the returned metadata is not exactly the same as is available from the origin server, but is collected from a local or a third-party copy. This is mostly used for mirrors or backups of another resource. Except for that specific case, the 200 OK response is preferred to this status.
|
|
568
|
+
*/
|
|
569
|
+
readonly NON_AUTHORITATIVE_INFORMATION: 203;
|
|
570
|
+
/**
|
|
571
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/204 No Content}
|
|
572
|
+
* - There is no content to send for this request, but the headers are useful. The user agent may update its cached headers for this resource with the new ones.
|
|
573
|
+
*/
|
|
574
|
+
readonly NO_CONTENT: 204;
|
|
575
|
+
/**
|
|
576
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/205 Reset Content}
|
|
577
|
+
* - Tells the user agent to reset the document which sent this request.
|
|
578
|
+
*/
|
|
579
|
+
readonly RESET_CONTENT: 205;
|
|
580
|
+
/**
|
|
581
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/206 Partial Content}
|
|
582
|
+
* - This response code is used in response to a range request when the client has requested a part or parts of a resource.
|
|
583
|
+
*/
|
|
584
|
+
readonly PARTIAL_CONTENT: 206;
|
|
585
|
+
/**
|
|
586
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/207 Multi-Status}
|
|
587
|
+
* - Conveys information about multiple resources, for situations where multiple status codes might be appropriate.
|
|
588
|
+
*/
|
|
589
|
+
readonly MULTI_STATUS: 207;
|
|
590
|
+
/**
|
|
591
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/208 Already Reported}
|
|
592
|
+
* - Used inside a `<dav:propstat>` response element to avoid repeatedly enumerating the internal members of multiple bindings to the same collection.
|
|
593
|
+
*/
|
|
594
|
+
readonly ALREADY_REPORTED: 208;
|
|
595
|
+
/**
|
|
596
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/226 IM Used}
|
|
597
|
+
* - 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.
|
|
598
|
+
*/
|
|
599
|
+
readonly IM_USED: 226;
|
|
600
|
+
/**
|
|
601
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/300 Multiple Choices}
|
|
602
|
+
* - In agent-driven content negotiation, the request has more than one possible response and the user agent or user should choose one of them. There is no standardized way for clients to automatically choose one of the responses, so this is rarely used.
|
|
603
|
+
*/
|
|
604
|
+
readonly MULTIPLE_CHOICES: 300;
|
|
605
|
+
/**
|
|
606
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/301 Moved Permanently}
|
|
607
|
+
* - The URL of the requested resource has been changed permanently. The new URL is given in the response.
|
|
608
|
+
*/
|
|
609
|
+
readonly MOVED_PERMANENTLY: 301;
|
|
610
|
+
/**
|
|
611
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/302 Found}
|
|
612
|
+
* - This response code means that the URI of requested resource has been changed temporarily. Further changes in the URI might be made in the future, so the same URI should be used by the client in future requests.
|
|
613
|
+
*/
|
|
614
|
+
readonly FOUND: 302;
|
|
615
|
+
/**
|
|
616
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/303 See Other}
|
|
617
|
+
* - The server sent this response to direct the client to get the requested resource at another URI with a GET request.
|
|
618
|
+
*/
|
|
619
|
+
readonly SEE_OTHER: 303;
|
|
620
|
+
/**
|
|
621
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/304 Not Modified}
|
|
622
|
+
* - This is used for caching purposes. It tells the client that the response has not been modified, so the client can continue to use the same cached version of the response.
|
|
623
|
+
*/
|
|
624
|
+
readonly NOT_MODIFIED: 304;
|
|
625
|
+
/**
|
|
626
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status#305_use_proxy Use Proxy}
|
|
627
|
+
* @deprecated Defined in a previous version of the HTTP specification to indicate that a requested response must be accessed by a proxy. It has been deprecated due to security concerns regarding in-band configuration of a proxy.
|
|
628
|
+
*/
|
|
629
|
+
readonly USE_PROXY: 305;
|
|
630
|
+
/**
|
|
631
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status#306_unused unused}
|
|
632
|
+
* @deprecated This response code is no longer used; but is reserved. It was used in a previous version of the HTTP/1.1 specification.
|
|
633
|
+
*/
|
|
634
|
+
readonly UNUSED: 306;
|
|
635
|
+
/**
|
|
636
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/307 Temporary Redirect}
|
|
637
|
+
* - The server sends this response to direct the client to get the requested resource at another URI with the same method that was used in the prior request. This has the same semantics as the 302 Found response code, with the exception that the user agent must not change the HTTP method used: if a POST was used in the first request, a POST must be used in the redirected request.
|
|
638
|
+
*/
|
|
639
|
+
readonly TEMPORARY_REDIRECT: 307;
|
|
640
|
+
/**
|
|
641
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/308 Permanent Redirect}
|
|
642
|
+
* - This means that the resource is now permanently located at another URI, specified by the Location response header. This has the same semantics as the 301 Moved Permanently HTTP response code, with the exception that the user agent must not change the HTTP method used: if a POST was used in the first request, a POST must be used in the second request.
|
|
643
|
+
*/
|
|
644
|
+
readonly PERMANENT_REDIRECT: 308;
|
|
645
|
+
/**
|
|
646
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/400 Bad Request}
|
|
647
|
+
* - The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
|
|
648
|
+
*/
|
|
649
|
+
readonly BAD_REQUEST: 400;
|
|
650
|
+
/**
|
|
651
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/401 Unauthorized}
|
|
652
|
+
* - Although the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated". That is, the client must authenticate itself to get the requested response.
|
|
653
|
+
*/
|
|
654
|
+
readonly UNAUTHORIZED: 401;
|
|
655
|
+
/**
|
|
656
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/402 Payment Required}
|
|
657
|
+
* - The initial purpose of this code was for digital payment systems, however this status code is rarely used and no standard convention exists.
|
|
658
|
+
*/
|
|
659
|
+
readonly PAYMENT_REQUIRED: 402;
|
|
660
|
+
/**
|
|
661
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/403 Forbidden}
|
|
662
|
+
* - The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource. Unlike 401 Unauthorized, the client's identity is known to the server.
|
|
663
|
+
*/
|
|
664
|
+
readonly FORBIDDEN: 403;
|
|
665
|
+
/**
|
|
666
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/404 Not Found}
|
|
667
|
+
* - The server cannot find the requested resource. In the browser, this means the URL is not recognized. In an API, this can also mean that the endpoint is valid but the resource itself does not exist. Servers may also send this response instead of 403 Forbidden to hide the existence of a resource from an unauthorized client. This response code is probably the most well known due to its frequent occurrence on the web.
|
|
668
|
+
*/
|
|
669
|
+
readonly NOT_FOUND: 404;
|
|
670
|
+
/**
|
|
671
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/405 Method Not Allowed}
|
|
672
|
+
* - The request method is known by the server but is not supported by the target resource. For example, an API may not allow DELETE on a resource, or the TRACE method entirely.
|
|
673
|
+
*/
|
|
674
|
+
readonly METHOD_NOT_ALLOWED: 405;
|
|
675
|
+
/**
|
|
676
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/406 Not Acceptable}
|
|
677
|
+
* - This response is sent when the web server, after performing server-driven content negotiation, doesn't find any content that conforms to the criteria given by the user agent.
|
|
678
|
+
*/
|
|
679
|
+
readonly NOT_ACCEPTABLE: 406;
|
|
680
|
+
/**
|
|
681
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/407 Proxy Authentication Required}
|
|
682
|
+
* - This is similar to 401 Unauthorized but authentication is needed to be done by a proxy.
|
|
683
|
+
*/
|
|
684
|
+
readonly PROXY_AUTHENTICATION_REQUIRED: 407;
|
|
685
|
+
/**
|
|
686
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/408 Request Timeout}
|
|
687
|
+
* - This response is sent on an idle connection by some servers, even without any previous request by the client. It means that the server would like to shut down this unused connection. This response is used much more since some browsers use HTTP pre-connection mechanisms to speed up browsing. Some servers may shut down a connection without sending this message.
|
|
688
|
+
*/
|
|
689
|
+
readonly REQUEST_TIMEOUT: 408;
|
|
690
|
+
/**
|
|
691
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/409 Conflict}
|
|
692
|
+
* - This response is sent when a request conflicts with the current state of the server. In WebDAV remote web authoring, 409 responses are errors sent to the client so that a user might be able to resolve a conflict and resubmit the request.
|
|
693
|
+
*/
|
|
694
|
+
readonly CONFLICT: 409;
|
|
695
|
+
/**
|
|
696
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/410 Gone}
|
|
697
|
+
* - This response is sent when the requested content has been permanently deleted from server, with no forwarding address. Clients are expected to remove their caches and links to the resource. The HTTP specification intends this status code to be used for "limited-time, promotional services". APIs should not feel compelled to indicate resources that have been deleted with this status code.
|
|
698
|
+
*/
|
|
699
|
+
readonly GONE: 410;
|
|
700
|
+
/**
|
|
701
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/411 Length Required}
|
|
702
|
+
* - Server rejected the request because the Content-Length header field is not defined and the server requires it.
|
|
703
|
+
*/
|
|
704
|
+
readonly LENGTH_REQUIRED: 411;
|
|
705
|
+
/**
|
|
706
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/412 Precondition Failed}
|
|
707
|
+
* - In conditional requests, the client has indicated preconditions in its headers which the server does not meet.
|
|
708
|
+
*/
|
|
709
|
+
readonly PRECONDITION_FAILED: 412;
|
|
710
|
+
/**
|
|
711
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/413 Content Too Large}
|
|
712
|
+
* - The request body is larger than limits defined by server. The server might close the connection or return an Retry-After header field.
|
|
713
|
+
*/
|
|
714
|
+
readonly CONTENT_TOO_LARGE: 413;
|
|
715
|
+
/**
|
|
716
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/414 URI Too Long}
|
|
717
|
+
* - The URI requested by the client is longer than the server is willing to interpret.
|
|
718
|
+
*/
|
|
719
|
+
readonly URI_TOO_LONG: 414;
|
|
720
|
+
/**
|
|
721
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/415 Unsupported Media Type}
|
|
722
|
+
* - The media format of the requested data is not supported by the server, so the server is rejecting the request.
|
|
723
|
+
*/
|
|
724
|
+
readonly UNSUPPORTED_MEDIA_TYPE: 415;
|
|
725
|
+
/**
|
|
726
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/416 Range Not Satisfiable}
|
|
727
|
+
* - The ranges specified by the Range header field in the request cannot be fulfilled. It's possible that the range is outside the size of the target resource's data.
|
|
728
|
+
*/
|
|
729
|
+
readonly RANGE_NOT_SATISFIABLE: 416;
|
|
730
|
+
/**
|
|
731
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/417 Expectation Failed}
|
|
732
|
+
* - This response code means the expectation indicated by the Expect request header field cannot be met by the server.
|
|
733
|
+
*/
|
|
734
|
+
readonly EXPECTATION_FAILED: 417;
|
|
735
|
+
/**
|
|
736
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/418 I'm a teapot}
|
|
737
|
+
* - The server refuses the attempt to brew coffee with a teapot.
|
|
738
|
+
*/
|
|
739
|
+
readonly I_M_A_TEAPOT: 418;
|
|
740
|
+
/**
|
|
741
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/421 Misdirected Request}
|
|
742
|
+
* - The request was directed at a server that is not able to produce a response. This can be sent by a server that is not configured to produce responses for the combination of scheme and authority that are included in the request URI.
|
|
743
|
+
*/
|
|
744
|
+
readonly MISDIRECTED_REQUEST: 421;
|
|
745
|
+
/**
|
|
746
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/422 Unprocessable Content}
|
|
747
|
+
* - The request was well-formed but was unable to be followed due to semantic errors.
|
|
748
|
+
*/
|
|
749
|
+
readonly UNPROCESSABLE_CONTENT: 422;
|
|
750
|
+
/**
|
|
751
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/423 Locked}
|
|
752
|
+
* - The resource that is being accessed is locked.
|
|
753
|
+
*/
|
|
754
|
+
readonly LOCKED: 423;
|
|
755
|
+
/**
|
|
756
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/424 Failed Dependency}
|
|
757
|
+
* - The request failed due to failure of a previous request.
|
|
758
|
+
*/
|
|
759
|
+
readonly FAILED_DEPENDENCY: 424;
|
|
760
|
+
/**
|
|
761
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/425 Too Early}
|
|
762
|
+
* - Indicates that the server is unwilling to risk processing a request that might be replayed.
|
|
763
|
+
*/
|
|
764
|
+
readonly TOO_EARLY: 425;
|
|
765
|
+
/**
|
|
766
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/426 Upgrade Required}
|
|
767
|
+
* - 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. The server sends an Upgrade header in a 426 response to indicate the required protocol(s).
|
|
768
|
+
*/
|
|
769
|
+
readonly UPGRADE_REQUIRED: 426;
|
|
770
|
+
/**
|
|
771
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/428 Precondition Required}
|
|
772
|
+
* - The origin server requires the request to be conditional. This response is intended to prevent the 'lost update' problem, where a client GETs a resource's state, modifies it and PUTs it back to the server, when meanwhile a third party has modified the state on the server, leading to a conflict.
|
|
773
|
+
*/
|
|
774
|
+
readonly PRECONDITION_REQUIRED: 428;
|
|
775
|
+
/**
|
|
776
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/429 Too Many Requests}
|
|
777
|
+
* - The user has sent too many requests in a given amount of time (rate limiting).
|
|
778
|
+
*/
|
|
779
|
+
readonly TOO_MANY_REQUESTS: 429;
|
|
780
|
+
/**
|
|
781
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/431 Request Header Fields Too Large}
|
|
782
|
+
* - The server is unwilling to process the request because its header fields are too large. The request may be resubmitted after reducing the size of the request header fields.
|
|
783
|
+
*/
|
|
784
|
+
readonly REQUEST_HEADER_FIELDS_TOO_LARGE: 431;
|
|
785
|
+
/**
|
|
786
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/451 Unavailable For Legal Reasons}
|
|
787
|
+
* - The user agent requested a resource that cannot legally be provided, such as a web page censored by a government.
|
|
788
|
+
*/
|
|
789
|
+
readonly UNAVAILABLE_FOR_LEGAL_REASONS: 451;
|
|
790
|
+
/**
|
|
791
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/500 Internal Server Error}
|
|
792
|
+
* - The server has encountered a situation it does not know how to handle. This error is generic, indicating that the server cannot find a more appropriate 5XX status code to respond with.
|
|
793
|
+
*/
|
|
794
|
+
readonly INTERNAL_SERVER_ERROR: 500;
|
|
795
|
+
/**
|
|
796
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/501 Not Implemented}
|
|
797
|
+
* - The request method is not supported by the server and cannot be handled. The only methods that servers are required to support (and therefore that must not return this code) are GET and HEAD.
|
|
798
|
+
*/
|
|
799
|
+
readonly NOT_IMPLEMENTED: 501;
|
|
800
|
+
/**
|
|
801
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/502 Bad Gateway}
|
|
802
|
+
* - This error response means that the server, while working as a gateway to get a response needed to handle the request, got an invalid response.
|
|
803
|
+
*/
|
|
804
|
+
readonly BAD_GATEWAY: 502;
|
|
805
|
+
/**
|
|
806
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/503 Service Unavailable}
|
|
807
|
+
* - The server is not ready to handle the request. Common causes are a server that is down for maintenance or that is overloaded. Note that together with this response, a user-friendly page explaining the problem should be sent. This response should be used for temporary conditions and the Retry-After HTTP header should, if possible, contain the estimated time before the recovery of the service. The webmaster must also take care about the caching-related headers that are sent along with this response, as these temporary condition responses should usually not be cached.
|
|
808
|
+
*/
|
|
809
|
+
readonly SERVICE_UNAVAILABLE: 503;
|
|
810
|
+
/**
|
|
811
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/504 Gateway Timeout}
|
|
812
|
+
* - This error response is given when the server is acting as a gateway and cannot get a response in time.
|
|
813
|
+
*/
|
|
814
|
+
readonly GATEWAY_TIMEOUT: 504;
|
|
815
|
+
/**
|
|
816
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/505 HTTP Version Not Supported}
|
|
817
|
+
* - The HTTP version used in the request is not supported by the server.
|
|
818
|
+
*/
|
|
819
|
+
readonly HTTP_VERSION_NOT_SUPPORTED: 505;
|
|
820
|
+
/**
|
|
821
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/506 Variant Also Negotiates}
|
|
822
|
+
* - The server has an internal configuration error: during content negotiation, the chosen variant is configured to engage in content negotiation itself, which results in circular references when creating responses.
|
|
823
|
+
*/
|
|
824
|
+
readonly VARIANT_ALSO_NEGOTIATES: 506;
|
|
825
|
+
/**
|
|
826
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/507 Insufficient Storage}
|
|
827
|
+
* - The method could not be performed on the resource because the server is unable to store the representation needed to successfully complete the request.
|
|
828
|
+
*/
|
|
829
|
+
readonly INSUFFICIENT_STORAGE: 507;
|
|
830
|
+
/**
|
|
831
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/508 Loop Detected}
|
|
832
|
+
* - The server detected an infinite loop while processing the request.
|
|
833
|
+
*/
|
|
834
|
+
readonly LOOP_DETECTED: 508;
|
|
835
|
+
/**
|
|
836
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/510 Not Extended}
|
|
837
|
+
* - The client request declares an HTTP Extension (RFC 2774) that should be used to process the request, but the extension is not supported.
|
|
838
|
+
*/
|
|
839
|
+
readonly NOT_EXTENDED: 510;
|
|
840
|
+
/**
|
|
841
|
+
* * {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/511 Network Authentication Required}
|
|
842
|
+
* - Indicates that the client needs to authenticate to gain network access.
|
|
843
|
+
*/
|
|
844
|
+
readonly NETWORK_AUTHENTICATION_REQUIRED: 511;
|
|
845
|
+
}>;
|
|
846
|
+
//#endregion
|
|
847
|
+
export { HTTP_STATUS_DATA as n, HTTP_STATUS_CODES as t };
|