@scayle/omnichannel-nuxt 4.0.4 → 4.1.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/CHANGELOG.md +12 -0
- package/LICENSE +1 -1
- package/dist/index.d.mts +1 -10
- package/dist/index.d.ts +1 -10
- package/dist/module.d.mts +11 -0
- package/dist/module.d.ts +11 -0
- package/dist/module.json +2 -2
- package/dist/module.mjs +9 -15
- package/dist/runtime/composables/useStoreLocator.d.ts +1 -1
- package/dist/runtime/composables/useStoreVariantById.d.ts +1 -1
- package/dist/runtime/composables/useStoreVariantById.js +7 -11
- package/dist/runtime/composables/useStores.d.ts +2 -2
- package/dist/runtime/composables/useStores.js +4 -5
- package/dist/runtime/composables/useVariantStores.d.ts +1 -1
- package/dist/runtime/composables/useVariantStores.js +3 -4
- package/dist/runtime/lib/init.d.ts +9 -7
- package/dist/runtime/lib/init.js +1 -1
- package/dist/runtime/rpc/storeLocator.d.ts +5 -4
- package/dist/runtime/rpc/storeLocator.js +30 -7
- package/package.json +16 -12
- package/dist/runtime/constants/httpStatus.d.ts +0 -632
- package/dist/runtime/constants/httpStatus.js +0 -629
- package/dist/runtime/error/errorHandler.d.ts +0 -7
- package/dist/runtime/error/errorHandler.js +0 -20
- package/dist/runtime/handler.d.ts +0 -7
- package/dist/runtime/handler.js +0 -55
|
@@ -1,632 +0,0 @@
|
|
|
1
|
-
import type { ValuesType } from 'utility-types';
|
|
2
|
-
declare const HttpStatusCode: {
|
|
3
|
-
/**
|
|
4
|
-
* The server has received the request headers and the client should proceed to send the request body
|
|
5
|
-
* (in the case of a request for which a body needs to be sent; for example, a POST request).
|
|
6
|
-
* Sending a large request body to a server after a request has been rejected for inappropriate headers would be inefficient.
|
|
7
|
-
* To have a server check the request's headers, a client must send Expect: 100-continue as a header in its initial request
|
|
8
|
-
* and receive a 100 Continue status code in response before sending the body. The response 417 Expectation Failed indicates the request should not be continued.
|
|
9
|
-
*/
|
|
10
|
-
readonly CONTINUE: 100;
|
|
11
|
-
/**
|
|
12
|
-
* The requester has asked the server to switch protocols and the server has agreed to do so.
|
|
13
|
-
*/
|
|
14
|
-
readonly SWITCHING_PROTOCOLS: 101;
|
|
15
|
-
/**
|
|
16
|
-
* A WebDAV request may contain many sub-requests involving file operations, requiring a long time to complete the request.
|
|
17
|
-
* This code indicates that the server has received and is processing the request, but no response is available yet.
|
|
18
|
-
* This prevents the client from timing out and assuming the request was lost.
|
|
19
|
-
*/
|
|
20
|
-
readonly PROCESSING: 102;
|
|
21
|
-
/**
|
|
22
|
-
* Standard response for successful HTTP requests.
|
|
23
|
-
* The actual response will depend on the request method used.
|
|
24
|
-
* In a GET request, the response will contain an entity corresponding to the requested resource.
|
|
25
|
-
* In a POST request, the response will contain an entity describing or containing the result of the action.
|
|
26
|
-
*/
|
|
27
|
-
readonly OK: 200;
|
|
28
|
-
/**
|
|
29
|
-
* The request has been fulfilled, resulting in the creation of a new resource.
|
|
30
|
-
*/
|
|
31
|
-
readonly CREATED: 201;
|
|
32
|
-
/**
|
|
33
|
-
* The request has been accepted for processing, but the processing has not been completed.
|
|
34
|
-
* The request might or might not be eventually acted upon, and may be disallowed when processing occurs.
|
|
35
|
-
*/
|
|
36
|
-
readonly ACCEPTED: 202;
|
|
37
|
-
/**
|
|
38
|
-
* SINCE HTTP/1.1
|
|
39
|
-
* The server is a transforming proxy that received a 200 OK from its origin,
|
|
40
|
-
* but is returning a modified version of the origin's response.
|
|
41
|
-
*/
|
|
42
|
-
readonly NON_AUTHORITATIVE_INFORMATION: 203;
|
|
43
|
-
/**
|
|
44
|
-
* The server successfully processed the request and is not returning any content.
|
|
45
|
-
*/
|
|
46
|
-
readonly NO_CONTENT: 204;
|
|
47
|
-
/**
|
|
48
|
-
* The server successfully processed the request, but is not returning any content.
|
|
49
|
-
* Unlike a 204 response, this response requires that the requester reset the document view.
|
|
50
|
-
*/
|
|
51
|
-
readonly RESET_CONTENT: 205;
|
|
52
|
-
/**
|
|
53
|
-
* The server is delivering only part of the resource (byte serving) due to a range header sent by the client.
|
|
54
|
-
* The range header is used by HTTP clients to enable resuming of interrupted downloads,
|
|
55
|
-
* or split a download into multiple simultaneous streams.
|
|
56
|
-
*/
|
|
57
|
-
readonly PARTIAL_CONTENT: 206;
|
|
58
|
-
/**
|
|
59
|
-
* The message body that follows is an XML message and can contain a number of separate response codes,
|
|
60
|
-
* depending on how many sub-requests were made.
|
|
61
|
-
*/
|
|
62
|
-
readonly MULTI_STATUS: 207;
|
|
63
|
-
/**
|
|
64
|
-
* The members of a DAV binding have already been enumerated in a preceding part of the (multistatus) response,
|
|
65
|
-
* and are not being included again.
|
|
66
|
-
*/
|
|
67
|
-
readonly ALREADY_REPORTED: 208;
|
|
68
|
-
/**
|
|
69
|
-
* The server has fulfilled a request for the resource,
|
|
70
|
-
* and the response is a representation of the result of one or more instance-manipulations applied to the current instance.
|
|
71
|
-
*/
|
|
72
|
-
readonly IM_USED: 226;
|
|
73
|
-
/**
|
|
74
|
-
* Indicates multiple options for the resource from which the client may choose (via agent-driven content negotiation).
|
|
75
|
-
* For example, this code could be used to present multiple video format options,
|
|
76
|
-
* to list files with different filename extensions, or to suggest word-sense disambiguation.
|
|
77
|
-
*/
|
|
78
|
-
readonly MULTIPLE_CHOICES: 300;
|
|
79
|
-
/**
|
|
80
|
-
* This and all future requests should be directed to the given URI.
|
|
81
|
-
*/
|
|
82
|
-
readonly MOVED_PERMANENTLY: 301;
|
|
83
|
-
/**
|
|
84
|
-
* This is an example of industry practice contradicting the standard.
|
|
85
|
-
* The HTTP/1.0 specification (RFC 1945) required the client to perform a temporary redirect
|
|
86
|
-
* (the original describing phrase was "Moved Temporarily"), but popular browsers implemented 302
|
|
87
|
-
* with the functionality of a 303 See Other. Therefore, HTTP/1.1 added status codes 303 and 307
|
|
88
|
-
* to distinguish between the two behaviours. However, some Web applications and frameworks
|
|
89
|
-
* use the 302 status code as if it were the 303.
|
|
90
|
-
*/
|
|
91
|
-
readonly FOUND: 302;
|
|
92
|
-
/**
|
|
93
|
-
* SINCE HTTP/1.1
|
|
94
|
-
* The response to the request can be found under another URI using a GET method.
|
|
95
|
-
* When received in response to a POST (or PUT/DELETE), the client should presume that
|
|
96
|
-
* the server has received the data and should issue a redirect with a separate GET message.
|
|
97
|
-
*/
|
|
98
|
-
readonly SEE_OTHER: 303;
|
|
99
|
-
/**
|
|
100
|
-
* Indicates that the resource has not been modified since the version specified by the request headers If-Modified-Since or If-None-Match.
|
|
101
|
-
* In such case, there is no need to retransmit the resource since the client still has a previously-downloaded copy.
|
|
102
|
-
*/
|
|
103
|
-
readonly NOT_MODIFIED: 304;
|
|
104
|
-
/**
|
|
105
|
-
* SINCE HTTP/1.1
|
|
106
|
-
* The requested resource is available only through a proxy, the address for which is provided in the response.
|
|
107
|
-
* Many HTTP clients (such as Mozilla and Internet Explorer) do not correctly handle responses with this status code, primarily for security reasons.
|
|
108
|
-
*/
|
|
109
|
-
readonly USE_PROXY: 305;
|
|
110
|
-
/**
|
|
111
|
-
* No longer used. Originally meant "Subsequent requests should use the specified proxy."
|
|
112
|
-
*/
|
|
113
|
-
readonly SWITCH_PROXY: 306;
|
|
114
|
-
/**
|
|
115
|
-
* SINCE HTTP/1.1
|
|
116
|
-
* In this case, the request should be repeated with another URI; however, future requests should still use the original URI.
|
|
117
|
-
* In contrast to how 302 was historically implemented, the request method is not allowed to be changed when reissuing the original request.
|
|
118
|
-
* For example, a POST request should be repeated using another POST request.
|
|
119
|
-
*/
|
|
120
|
-
readonly TEMPORARY_REDIRECT: 307;
|
|
121
|
-
/**
|
|
122
|
-
* The request and all future requests should be repeated using another URI.
|
|
123
|
-
* 307 and 308 parallel the behaviors of 302 and 301, but do not allow the HTTP method to change.
|
|
124
|
-
* So, for example, submitting a form to a permanently redirected resource may continue smoothly.
|
|
125
|
-
*/
|
|
126
|
-
readonly PERMANENT_REDIRECT: 308;
|
|
127
|
-
/**
|
|
128
|
-
* The server cannot or will not process the request due to an apparent client error
|
|
129
|
-
* (e.g., malformed request syntax, too large size, invalid request message framing, or deceptive request routing).
|
|
130
|
-
*/
|
|
131
|
-
readonly BAD_REQUEST: 400;
|
|
132
|
-
/**
|
|
133
|
-
* Similar to 403 Forbidden, but specifically for use when authentication is required and has failed or has not yet
|
|
134
|
-
* been provided. The response must include a WWW-Authenticate header field containing a challenge applicable to the
|
|
135
|
-
* requested resource. See Basic access authentication and Digest access authentication. 401 semantically means
|
|
136
|
-
* "unauthenticated",i.e. the user does not have the necessary credentials.
|
|
137
|
-
*/
|
|
138
|
-
readonly UNAUTHORIZED: 401;
|
|
139
|
-
/**
|
|
140
|
-
* Reserved for future use. The original intention was that this code might be used as part of some form of digital
|
|
141
|
-
* cash or micro payment scheme, but that has not happened, and this code is not usually used.
|
|
142
|
-
* Google Developers API uses this status if a particular developer has exceeded the daily limit on requests.
|
|
143
|
-
*/
|
|
144
|
-
readonly PAYMENT_REQUIRED: 402;
|
|
145
|
-
/**
|
|
146
|
-
* The request was valid, but the server is refusing action.
|
|
147
|
-
* The user might not have the necessary permissions for a resource.
|
|
148
|
-
*/
|
|
149
|
-
readonly FORBIDDEN: 403;
|
|
150
|
-
/**
|
|
151
|
-
* The requested resource could not be found but may be available in the future.
|
|
152
|
-
* Subsequent requests by the client are permissible.
|
|
153
|
-
*/
|
|
154
|
-
readonly NOT_FOUND: 404;
|
|
155
|
-
/**
|
|
156
|
-
* A request method is not supported for the requested resource;
|
|
157
|
-
* for example, a GET request on a form that requires data to be presented via POST, or a PUT request on a read-only resource.
|
|
158
|
-
*/
|
|
159
|
-
readonly METHOD_NOT_ALLOWED: 405;
|
|
160
|
-
/**
|
|
161
|
-
* The requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.
|
|
162
|
-
*/
|
|
163
|
-
readonly NOT_ACCEPTABLE: 406;
|
|
164
|
-
/**
|
|
165
|
-
* The client must first authenticate itself with the proxy.
|
|
166
|
-
*/
|
|
167
|
-
readonly PROXY_AUTHENTICATION_REQUIRED: 407;
|
|
168
|
-
/**
|
|
169
|
-
* The server timed out waiting for the request.
|
|
170
|
-
* According to HTTP specifications:
|
|
171
|
-
* "The client did not produce a request within the time that the server was prepared to wait. The client MAY repeat the request without modifications at any later time."
|
|
172
|
-
*/
|
|
173
|
-
readonly REQUEST_TIMEOUT: 408;
|
|
174
|
-
/**
|
|
175
|
-
* Indicates that the request could not be processed because of conflict in the request,
|
|
176
|
-
* such as an edit conflict between multiple simultaneous updates.
|
|
177
|
-
*/
|
|
178
|
-
readonly CONFLICT: 409;
|
|
179
|
-
/**
|
|
180
|
-
* Indicates that the resource requested is no longer available and will not be available again.
|
|
181
|
-
* This should be used when a resource has been intentionally removed and the resource should be purged.
|
|
182
|
-
* Upon receiving a 410 status code, the client should not request the resource in the future.
|
|
183
|
-
* Clients such as search engines should remove the resource from their indices.
|
|
184
|
-
* Most use cases do not require clients and search engines to purge the resource, and a "404 Not Found" may be used instead.
|
|
185
|
-
*/
|
|
186
|
-
readonly GONE: 410;
|
|
187
|
-
/**
|
|
188
|
-
* The request did not specify the length of its content, which is required by the requested resource.
|
|
189
|
-
*/
|
|
190
|
-
readonly LENGTH_REQUIRED: 411;
|
|
191
|
-
/**
|
|
192
|
-
* The server does not meet one of the preconditions that the requester put on the request.
|
|
193
|
-
*/
|
|
194
|
-
readonly PRECONDITION_FAILED: 412;
|
|
195
|
-
/**
|
|
196
|
-
* The request is larger than the server is willing or able to process. Previously called "Request Entity Too Large".
|
|
197
|
-
*/
|
|
198
|
-
readonly CONTENT_TOO_LARGE: 413;
|
|
199
|
-
/**
|
|
200
|
-
* The URI provided was too long for the server to process. Often the result of too much data being encoded as a query-string of a GET request,
|
|
201
|
-
* in which case it should be converted to a POST request.
|
|
202
|
-
* Called "Request-URI Too Long" previously.
|
|
203
|
-
*/
|
|
204
|
-
readonly URI_TOO_LONG: 414;
|
|
205
|
-
/**
|
|
206
|
-
* The request entity has a media type which the server or resource does not support.
|
|
207
|
-
* For example, the client uploads an image as image/svg+xml, but the server requires that images use a different format.
|
|
208
|
-
*/
|
|
209
|
-
readonly UNSUPPORTED_MEDIA_TYPE: 415;
|
|
210
|
-
/**
|
|
211
|
-
* The client has asked for a portion of the file (byte serving), but the server cannot supply that portion.
|
|
212
|
-
* For example, if the client asked for a part of the file that lies beyond the end of the file.
|
|
213
|
-
* Called "Requested Range Not Satisfiable" previously.
|
|
214
|
-
*/
|
|
215
|
-
readonly RANGE_NOT_SATISFIABLE: 416;
|
|
216
|
-
/**
|
|
217
|
-
* The server cannot meet the requirements of the Expect request-header field.
|
|
218
|
-
*/
|
|
219
|
-
readonly EXPECTATION_FAILED: 417;
|
|
220
|
-
/**
|
|
221
|
-
* This code was defined in 1998 as one of the traditional IETF April Fools' jokes, in RFC 2324, Hyper Text Coffee Pot Control Protocol,
|
|
222
|
-
* and is not expected to be implemented by actual HTTP servers. The RFC specifies this code should be returned by
|
|
223
|
-
* teapots requested to brew coffee. This HTTP status is used as an Easter egg in some websites, including Google.com.
|
|
224
|
-
*/
|
|
225
|
-
readonly I_AM_A_TEAPOT: 418;
|
|
226
|
-
/**
|
|
227
|
-
* The request was directed at a server that is not able to produce a response (for example because a connection reuse).
|
|
228
|
-
*/
|
|
229
|
-
readonly MISDIRECTED_REQUEST: 421;
|
|
230
|
-
/**
|
|
231
|
-
* The request was well-formed but was unable to be followed due to semantic errors.
|
|
232
|
-
*/
|
|
233
|
-
readonly UNPROCESSABLE_CONTENT: 422;
|
|
234
|
-
/**
|
|
235
|
-
* The resource that is being accessed is locked.
|
|
236
|
-
*/
|
|
237
|
-
readonly LOCKED: 423;
|
|
238
|
-
/**
|
|
239
|
-
* The request failed due to failure of a previous request (e.g., a PROPPATCH).
|
|
240
|
-
*/
|
|
241
|
-
readonly FAILED_DEPENDENCY: 424;
|
|
242
|
-
/**
|
|
243
|
-
* The client should switch to a different protocol such as TLS/1.0, given in the Upgrade header field.
|
|
244
|
-
*/
|
|
245
|
-
readonly UPGRADE_REQUIRED: 426;
|
|
246
|
-
/**
|
|
247
|
-
* The origin server requires the request to be conditional.
|
|
248
|
-
* Intended to prevent "the 'lost update' problem, where a client
|
|
249
|
-
* GETs a resource's state, modifies it, and PUTs it back to the server,
|
|
250
|
-
* when meanwhile a third party has modified the state on the server, leading to a conflict."
|
|
251
|
-
*/
|
|
252
|
-
readonly PRECONDITION_REQUIRED: 428;
|
|
253
|
-
/**
|
|
254
|
-
* The user has sent too many requests in a given amount of time. Intended for use with rate-limiting schemes.
|
|
255
|
-
*/
|
|
256
|
-
readonly TOO_MANY_REQUESTS: 429;
|
|
257
|
-
/**
|
|
258
|
-
* The server is unwilling to process the request because either an individual header field,
|
|
259
|
-
* or all the header fields collectively, are too large.
|
|
260
|
-
*/
|
|
261
|
-
readonly REQUEST_HEADER_FIELDS_TOO_LARGE: 431;
|
|
262
|
-
/**
|
|
263
|
-
* A server operator has received a legal demand to deny access to a resource or to a set of resources
|
|
264
|
-
* that includes the requested resource. The code 451 was chosen as a reference to the novel Fahrenheit 451.
|
|
265
|
-
*/
|
|
266
|
-
readonly UNAVAILABLE_FOR_LEGAL_REASONS: 451;
|
|
267
|
-
/**
|
|
268
|
-
* A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.
|
|
269
|
-
*/
|
|
270
|
-
readonly INTERNAL_SERVER_ERROR: 500;
|
|
271
|
-
/**
|
|
272
|
-
* The server either does not recognize the request method, or it lacks the ability to fulfill the request.
|
|
273
|
-
* Usually this implies future availability (e.g., a new feature of a web-service API).
|
|
274
|
-
*/
|
|
275
|
-
readonly NOT_IMPLEMENTED: 501;
|
|
276
|
-
/**
|
|
277
|
-
* The server was acting as a gateway or proxy and received an invalid response from the upstream server.
|
|
278
|
-
*/
|
|
279
|
-
readonly BAD_GATEWAY: 502;
|
|
280
|
-
/**
|
|
281
|
-
* The server is currently unavailable (because it is overloaded or down for maintenance).
|
|
282
|
-
* Generally, this is a temporary state.
|
|
283
|
-
*/
|
|
284
|
-
readonly SERVICE_UNAVAILABLE: 503;
|
|
285
|
-
/**
|
|
286
|
-
* The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.
|
|
287
|
-
*/
|
|
288
|
-
readonly GATEWAY_TIMEOUT: 504;
|
|
289
|
-
/**
|
|
290
|
-
* The server does not support the HTTP protocol version used in the request
|
|
291
|
-
*/
|
|
292
|
-
readonly HTTP_VERSION_NOT_SUPPORTED: 505;
|
|
293
|
-
/**
|
|
294
|
-
* Transparent content negotiation for the request results in a circular reference.
|
|
295
|
-
*/
|
|
296
|
-
readonly VARIANT_ALSO_NEGOTIATES: 506;
|
|
297
|
-
/**
|
|
298
|
-
* The server is unable to store the representation needed to complete the request.
|
|
299
|
-
*/
|
|
300
|
-
readonly INSUFFICIENT_STORAGE: 507;
|
|
301
|
-
/**
|
|
302
|
-
* The server detected an infinite loop while processing the request.
|
|
303
|
-
*/
|
|
304
|
-
readonly LOOP_DETECTED: 508;
|
|
305
|
-
/**
|
|
306
|
-
* Further extensions to the request are required for the server to fulfill it.
|
|
307
|
-
*/
|
|
308
|
-
readonly NOT_EXTENDED: 510;
|
|
309
|
-
/**
|
|
310
|
-
* The client needs to authenticate to gain network access.
|
|
311
|
-
* Intended for use by intercepting proxies used to control access to the network (e.g., "captive portals" used
|
|
312
|
-
* to require agreement to Terms of Service before granting full Internet access via a Wi-Fi hotspot).
|
|
313
|
-
*/
|
|
314
|
-
readonly NETWORK_AUTHENTICATION_REQUIRED: 511;
|
|
315
|
-
};
|
|
316
|
-
declare const HttpStatusMessage: {
|
|
317
|
-
/**
|
|
318
|
-
* The server has received the request headers and the client should proceed to send the request body
|
|
319
|
-
* (in the case of a request for which a body needs to be sent; for example, a POST request).
|
|
320
|
-
* Sending a large request body to a server after a request has been rejected for inappropriate headers would be inefficient.
|
|
321
|
-
* To have a server check the request's headers, a client must send Expect: 100-continue as a header in its initial request
|
|
322
|
-
* and receive a 100 Continue status code in response before sending the body. The response 417 Expectation Failed indicates the request should not be continued.
|
|
323
|
-
*/
|
|
324
|
-
readonly CONTINUE: "CONTINUE";
|
|
325
|
-
/**
|
|
326
|
-
* The requester has asked the server to switch protocols and the server has agreed to do so.
|
|
327
|
-
*/
|
|
328
|
-
readonly SWITCHING_PROTOCOLS: "SWITCHING PROTOCOLS";
|
|
329
|
-
/**
|
|
330
|
-
* A WebDAV request may contain many sub-requests involving file operations, requiring a long time to complete the request.
|
|
331
|
-
* This code indicates that the server has received and is processing the request, but no response is available yet.
|
|
332
|
-
* This prevents the client from timing out and assuming the request was lost.
|
|
333
|
-
*/
|
|
334
|
-
readonly PROCESSING: "PROCESSING";
|
|
335
|
-
/**
|
|
336
|
-
* Standard response for successful HTTP requests.
|
|
337
|
-
* The actual response will depend on the request method used.
|
|
338
|
-
* In a GET request, the response will contain an entity corresponding to the requested resource.
|
|
339
|
-
* In a POST request, the response will contain an entity describing or containing the result of the action.
|
|
340
|
-
*/
|
|
341
|
-
readonly OK: "OK";
|
|
342
|
-
/**
|
|
343
|
-
* The request has been fulfilled, resulting in the creation of a new resource.
|
|
344
|
-
*/
|
|
345
|
-
readonly CREATED: "CREATED";
|
|
346
|
-
/**
|
|
347
|
-
* The request has been accepted for processing, but the processing has not been completed.
|
|
348
|
-
* The request might or might not be eventually acted upon, and may be disallowed when processing occurs.
|
|
349
|
-
*/
|
|
350
|
-
readonly ACCEPTED: "ACCEPTED";
|
|
351
|
-
/**
|
|
352
|
-
* SINCE HTTP/1.1
|
|
353
|
-
* The server is a transforming proxy that received a 200 OK from its origin,
|
|
354
|
-
* but is returning a modified version of the origin's response.
|
|
355
|
-
*/
|
|
356
|
-
readonly NON_AUTHORITATIVE_INFORMATION: "NON AUTHORITATIVE INFORMATION";
|
|
357
|
-
/**
|
|
358
|
-
* The server successfully processed the request and is not returning any content.
|
|
359
|
-
*/
|
|
360
|
-
readonly NO_CONTENT: "NO CONTENT";
|
|
361
|
-
/**
|
|
362
|
-
* The server successfully processed the request, but is not returning any content.
|
|
363
|
-
* Unlike a 204 response, this response requires that the requester reset the document view.
|
|
364
|
-
*/
|
|
365
|
-
readonly RESET_CONTENT: "RESET CONTENT";
|
|
366
|
-
/**
|
|
367
|
-
* The server is delivering only part of the resource (byte serving) due to a range header sent by the client.
|
|
368
|
-
* The range header is used by HTTP clients to enable resuming of interrupted downloads,
|
|
369
|
-
* or split a download into multiple simultaneous streams.
|
|
370
|
-
*/
|
|
371
|
-
readonly PARTIAL_CONTENT: "PARTIAL CONTENT";
|
|
372
|
-
/**
|
|
373
|
-
* The message body that follows is an XML message and can contain a number of separate response codes,
|
|
374
|
-
* depending on how many sub-requests were made.
|
|
375
|
-
*/
|
|
376
|
-
readonly MULTI_STATUS: "MULTI STATUS";
|
|
377
|
-
/**
|
|
378
|
-
* The members of a DAV binding have already been enumerated in a preceding part of the (multistatus) response,
|
|
379
|
-
* and are not being included again.
|
|
380
|
-
*/
|
|
381
|
-
readonly ALREADY_REPORTED: "ALREADY REPORTED";
|
|
382
|
-
/**
|
|
383
|
-
* The server has fulfilled a request for the resource,
|
|
384
|
-
* and the response is a representation of the result of one or more instance-manipulations applied to the current instance.
|
|
385
|
-
*/
|
|
386
|
-
readonly IM_USED: "IM USED";
|
|
387
|
-
/**
|
|
388
|
-
* Indicates multiple options for the resource from which the client may choose (via agent-driven content negotiation).
|
|
389
|
-
* For example, this code could be used to present multiple video format options,
|
|
390
|
-
* to list files with different filename extensions, or to suggest word-sense disambiguation.
|
|
391
|
-
*/
|
|
392
|
-
readonly MULTIPLE_CHOICES: "MULTIPLE CHOICES";
|
|
393
|
-
/**
|
|
394
|
-
* This and all future requests should be directed to the given URI.
|
|
395
|
-
*/
|
|
396
|
-
readonly MOVED_PERMANENTLY: "MOVED PERMANENTLY";
|
|
397
|
-
/**
|
|
398
|
-
* This is an example of industry practice contradicting the standard.
|
|
399
|
-
* The HTTP/1.0 specification (RFC 1945) required the client to perform a temporary redirect
|
|
400
|
-
* (the original describing phrase was "Moved Temporarily"), but popular browsers implemented 302
|
|
401
|
-
* with the functionality of a 303 See Other. Therefore, HTTP/1.1 added status codes 303 and 307
|
|
402
|
-
* to distinguish between the two behaviours. However, some Web applications and frameworks
|
|
403
|
-
* use the 302 status code as if it were the 303.
|
|
404
|
-
*/
|
|
405
|
-
readonly FOUND: "FOUND";
|
|
406
|
-
/**
|
|
407
|
-
* SINCE HTTP/1.1
|
|
408
|
-
* The response to the request can be found under another URI using a GET method.
|
|
409
|
-
* When received in response to a POST (or PUT/DELETE), the client should presume that
|
|
410
|
-
* the server has received the data and should issue a redirect with a separate GET message.
|
|
411
|
-
*/
|
|
412
|
-
readonly SEE_OTHER: "SEE OTHER";
|
|
413
|
-
/**
|
|
414
|
-
* Indicates that the resource has not been modified since the version specified by the request headers If-Modified-Since or If-None-Match.
|
|
415
|
-
* In such case, there is no need to retransmit the resource since the client still has a previously-downloaded copy.
|
|
416
|
-
*/
|
|
417
|
-
readonly NOT_MODIFIED: "NOT MODIFIED";
|
|
418
|
-
/**
|
|
419
|
-
* SINCE HTTP/1.1
|
|
420
|
-
* The requested resource is available only through a proxy, the address for which is provided in the response.
|
|
421
|
-
* Many HTTP clients (such as Mozilla and Internet Explorer) do not correctly handle responses with this status code, primarily for security reasons.
|
|
422
|
-
*/
|
|
423
|
-
readonly USE_PROXY: "USE PROXY";
|
|
424
|
-
/**
|
|
425
|
-
* No longer used. Originally meant "Subsequent requests should use the specified proxy."
|
|
426
|
-
*/
|
|
427
|
-
readonly SWITCH_PROXY: "SWITCH PROXY";
|
|
428
|
-
/**
|
|
429
|
-
* SINCE HTTP/1.1
|
|
430
|
-
* In this case, the request should be repeated with another URI; however, future requests should still use the original URI.
|
|
431
|
-
* In contrast to how 302 was historically implemented, the request method is not allowed to be changed when reissuing the original request.
|
|
432
|
-
* For example, a POST request should be repeated using another POST request.
|
|
433
|
-
*/
|
|
434
|
-
readonly TEMPORARY_REDIRECT: "TEMPORARY REDIRECT";
|
|
435
|
-
/**
|
|
436
|
-
* The request and all future requests should be repeated using another URI.
|
|
437
|
-
* 307 and 308 parallel the behaviors of 302 and 301, but do not allow the HTTP method to change.
|
|
438
|
-
* So, for example, submitting a form to a permanently redirected resource may continue smoothly.
|
|
439
|
-
*/
|
|
440
|
-
readonly PERMANENT_REDIRECT: "PERMANENT REDIRECT";
|
|
441
|
-
/**
|
|
442
|
-
* The server cannot or will not process the request due to an apparent client error
|
|
443
|
-
* (e.g., malformed request syntax, too large size, invalid request message framing, or deceptive request routing).
|
|
444
|
-
*/
|
|
445
|
-
readonly BAD_REQUEST: "BAD REQUEST";
|
|
446
|
-
/**
|
|
447
|
-
* Similar to 403 Forbidden, but specifically for use when authentication is required and has failed or has not yet
|
|
448
|
-
* been provided. The response must include a WWW-Authenticate header field containing a challenge applicable to the
|
|
449
|
-
* requested resource. See Basic access authentication and Digest access authentication. 401 semantically means
|
|
450
|
-
* "unauthenticated",i.e. the user does not have the necessary credentials.
|
|
451
|
-
*/
|
|
452
|
-
readonly UNAUTHORIZED: "UNAUTHORIZED";
|
|
453
|
-
/**
|
|
454
|
-
* Reserved for future use. The original intention was that this code might be used as part of some form of digital
|
|
455
|
-
* cash or micro payment scheme, but that has not happened, and this code is not usually used.
|
|
456
|
-
* Google Developers API uses this status if a particular developer has exceeded the daily limit on requests.
|
|
457
|
-
*/
|
|
458
|
-
readonly PAYMENT_REQUIRED: "PAYMENT REQUIRED";
|
|
459
|
-
/**
|
|
460
|
-
* The request was valid, but the server is refusing action.
|
|
461
|
-
* The user might not have the necessary permissions for a resource.
|
|
462
|
-
*/
|
|
463
|
-
readonly FORBIDDEN: "FORBIDDEN";
|
|
464
|
-
/**
|
|
465
|
-
* The requested resource could not be found but may be available in the future.
|
|
466
|
-
* Subsequent requests by the client are permissible.
|
|
467
|
-
*/
|
|
468
|
-
readonly NOT_FOUND: "NOT FOUND";
|
|
469
|
-
/**
|
|
470
|
-
* A request method is not supported for the requested resource;
|
|
471
|
-
* for example, a GET request on a form that requires data to be presented via POST, or a PUT request on a read-only resource.
|
|
472
|
-
*/
|
|
473
|
-
readonly METHOD_NOT_ALLOWED: "METHOD NOT ALLOWED";
|
|
474
|
-
/**
|
|
475
|
-
* The requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.
|
|
476
|
-
*/
|
|
477
|
-
readonly NOT_ACCEPTABLE: "NOT ACCEPTABLE";
|
|
478
|
-
/**
|
|
479
|
-
* The client must first authenticate itself with the proxy.
|
|
480
|
-
*/
|
|
481
|
-
readonly PROXY_AUTHENTICATION_REQUIRED: "PROXY AUTHENTICATION REQUIRED";
|
|
482
|
-
/**
|
|
483
|
-
* The server timed out waiting for the request.
|
|
484
|
-
* According to HTTP specifications:
|
|
485
|
-
* "The client did not produce a request within the time that the server was prepared to wait. The client MAY repeat the request without modifications at any later time."
|
|
486
|
-
*/
|
|
487
|
-
readonly REQUEST_TIMEOUT: "REQUEST TIMEOUT";
|
|
488
|
-
/**
|
|
489
|
-
* Indicates that the request could not be processed because of conflict in the request,
|
|
490
|
-
* such as an edit conflict between multiple simultaneous updates.
|
|
491
|
-
*/
|
|
492
|
-
readonly CONFLICT: "CONFLICT";
|
|
493
|
-
/**
|
|
494
|
-
* Indicates that the resource requested is no longer available and will not be available again.
|
|
495
|
-
* This should be used when a resource has been intentionally removed and the resource should be purged.
|
|
496
|
-
* Upon receiving a 410 status code, the client should not request the resource in the future.
|
|
497
|
-
* Clients such as search engines should remove the resource from their indices.
|
|
498
|
-
* Most use cases do not require clients and search engines to purge the resource, and a "404 Not Found" may be used instead.
|
|
499
|
-
*/
|
|
500
|
-
readonly GONE: "GONE";
|
|
501
|
-
/**
|
|
502
|
-
* The request did not specify the length of its content, which is required by the requested resource.
|
|
503
|
-
*/
|
|
504
|
-
readonly LENGTH_REQUIRED: "LENGTH REQUIRED";
|
|
505
|
-
/**
|
|
506
|
-
* The server does not meet one of the preconditions that the requester put on the request.
|
|
507
|
-
*/
|
|
508
|
-
readonly PRECONDITION_FAILED: "PRECONDITION FAILED";
|
|
509
|
-
/**
|
|
510
|
-
* The request is larger than the server is willing or able to process. Previously called "Request Entity Too Large".
|
|
511
|
-
*/
|
|
512
|
-
readonly CONTENT_TOO_LARGE: "CONTENT TOO LARGE";
|
|
513
|
-
/**
|
|
514
|
-
* The URI provided was too long for the server to process. Often the result of too much data being encoded as a query-string of a GET request,
|
|
515
|
-
* in which case it should be converted to a POST request.
|
|
516
|
-
* Called "Request-URI Too Long" previously.
|
|
517
|
-
*/
|
|
518
|
-
readonly URI_TOO_LONG: "URI TOO LONG";
|
|
519
|
-
/**
|
|
520
|
-
* The request entity has a media type which the server or resource does not support.
|
|
521
|
-
* For example, the client uploads an image as image/svg+xml, but the server requires that images use a different format.
|
|
522
|
-
*/
|
|
523
|
-
readonly UNSUPPORTED_MEDIA_TYPE: "UNSUPPORTED MEDIA TYPE";
|
|
524
|
-
/**
|
|
525
|
-
* The client has asked for a portion of the file (byte serving), but the server cannot supply that portion.
|
|
526
|
-
* For example, if the client asked for a part of the file that lies beyond the end of the file.
|
|
527
|
-
* Called "Requested Range Not Satisfiable" previously.
|
|
528
|
-
*/
|
|
529
|
-
readonly RANGE_NOT_SATISFIABLE: "RANGE NOT SATISFIABLE";
|
|
530
|
-
/**
|
|
531
|
-
* The server cannot meet the requirements of the Expect request-header field.
|
|
532
|
-
*/
|
|
533
|
-
readonly EXPECTATION_FAILED: "EXPECTATION FAILED";
|
|
534
|
-
/**
|
|
535
|
-
* This code was defined in 1998 as one of the traditional IETF April Fools' jokes, in RFC 2324, Hyper Text Coffee Pot Control Protocol,
|
|
536
|
-
* and is not expected to be implemented by actual HTTP servers. The RFC specifies this code should be returned by
|
|
537
|
-
* teapots requested to brew coffee. This HTTP status is used as an Easter egg in some websites, including Google.com.
|
|
538
|
-
*/
|
|
539
|
-
readonly I_AM_A_TEAPOT: "I AM A TEAPOT";
|
|
540
|
-
/**
|
|
541
|
-
* The request was directed at a server that is not able to produce a response (for example because a connection reuse).
|
|
542
|
-
*/
|
|
543
|
-
readonly MISDIRECTED_REQUEST: "MISDIRECTED REQUEST";
|
|
544
|
-
/**
|
|
545
|
-
* The request was well-formed but was unable to be followed due to semantic errors.
|
|
546
|
-
*/
|
|
547
|
-
readonly UNPROCESSABLE_CONTENT: "UNPROCESSABLE CONTENT";
|
|
548
|
-
/**
|
|
549
|
-
* The resource that is being accessed is locked.
|
|
550
|
-
*/
|
|
551
|
-
readonly LOCKED: "LOCKED";
|
|
552
|
-
/**
|
|
553
|
-
* The request failed due to failure of a previous request (e.g., a PROPPATCH).
|
|
554
|
-
*/
|
|
555
|
-
readonly FAILED_DEPENDENCY: "FAILED DEPENDENCY";
|
|
556
|
-
/**
|
|
557
|
-
* The client should switch to a different protocol such as TLS/1.0, given in the Upgrade header field.
|
|
558
|
-
*/
|
|
559
|
-
readonly UPGRADE_REQUIRED: "UPGRADE REQUIRED";
|
|
560
|
-
/**
|
|
561
|
-
* The origin server requires the request to be conditional.
|
|
562
|
-
* Intended to prevent "the 'lost update' problem, where a client
|
|
563
|
-
* GETs a resource's state, modifies it, and PUTs it back to the server,
|
|
564
|
-
* when meanwhile a third party has modified the state on the server, leading to a conflict."
|
|
565
|
-
*/
|
|
566
|
-
readonly PRECONDITION_REQUIRED: "PRECONDITION REQUIRED";
|
|
567
|
-
/**
|
|
568
|
-
* The user has sent too many requests in a given amount of time. Intended for use with rate-limiting schemes.
|
|
569
|
-
*/
|
|
570
|
-
readonly TOO_MANY_REQUESTS: "TOO MANY REQUESTS";
|
|
571
|
-
/**
|
|
572
|
-
* The server is unwilling to process the request because either an individual header field,
|
|
573
|
-
* or all the header fields collectively, are too large.
|
|
574
|
-
*/
|
|
575
|
-
readonly REQUEST_HEADER_FIELDS_TOO_LARGE: "REQUEST HEADER FIELDS TOO LARGE";
|
|
576
|
-
/**
|
|
577
|
-
* A server operator has received a legal demand to deny access to a resource or to a set of resources
|
|
578
|
-
* that includes the requested resource. The code 451 was chosen as a reference to the novel Fahrenheit 451.
|
|
579
|
-
*/
|
|
580
|
-
readonly UNAVAILABLE_FOR_LEGAL_REASONS: "UNAVAILABLE FOR LEGAL REASONS";
|
|
581
|
-
/**
|
|
582
|
-
* A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.
|
|
583
|
-
*/
|
|
584
|
-
readonly INTERNAL_SERVER_ERROR: "INTERNAL SERVER ERROR";
|
|
585
|
-
/**
|
|
586
|
-
* The server either does not recognize the request method, or it lacks the ability to fulfill the request.
|
|
587
|
-
* Usually this implies future availability (e.g., a new feature of a web-service API).
|
|
588
|
-
*/
|
|
589
|
-
readonly NOT_IMPLEMENTED: "NOT IMPLEMENTED";
|
|
590
|
-
/**
|
|
591
|
-
* The server was acting as a gateway or proxy and received an invalid response from the upstream server.
|
|
592
|
-
*/
|
|
593
|
-
readonly BAD_GATEWAY: "BAD GATEWAY";
|
|
594
|
-
/**
|
|
595
|
-
* The server is currently unavailable (because it is overloaded or down for maintenance).
|
|
596
|
-
* Generally, this is a temporary state.
|
|
597
|
-
*/
|
|
598
|
-
readonly SERVICE_UNAVAILABLE: "SERVICE UNAVAILABLE";
|
|
599
|
-
/**
|
|
600
|
-
* The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.
|
|
601
|
-
*/
|
|
602
|
-
readonly GATEWAY_TIMEOUT: "GATEWAY TIMEOUT";
|
|
603
|
-
/**
|
|
604
|
-
* The server does not support the HTTP protocol version used in the request
|
|
605
|
-
*/
|
|
606
|
-
readonly HTTP_VERSION_NOT_SUPPORTED: "HTTP VERSION NOT SUPPORTED";
|
|
607
|
-
/**
|
|
608
|
-
* Transparent content negotiation for the request results in a circular reference.
|
|
609
|
-
*/
|
|
610
|
-
readonly VARIANT_ALSO_NEGOTIATES: "VARIANT ALSO NEGOTIATES";
|
|
611
|
-
/**
|
|
612
|
-
* The server is unable to store the representation needed to complete the request.
|
|
613
|
-
*/
|
|
614
|
-
readonly INSUFFICIENT_STORAGE: "INSUFFICIENT STORAGE";
|
|
615
|
-
/**
|
|
616
|
-
* The server detected an infinite loop while processing the request.
|
|
617
|
-
*/
|
|
618
|
-
readonly LOOP_DETECTED: "LOOP DETECTED";
|
|
619
|
-
/**
|
|
620
|
-
* Further extensions to the request are required for the server to fulfill it.
|
|
621
|
-
*/
|
|
622
|
-
readonly NOT_EXTENDED: "NOT EXTENDED";
|
|
623
|
-
/**
|
|
624
|
-
* The client needs to authenticate to gain network access.
|
|
625
|
-
* Intended for use by intercepting proxies used to control access to the network (e.g., "captive portals" used
|
|
626
|
-
* to require agreement to Terms of Service before granting full Internet access via a Wi-Fi hotspot).
|
|
627
|
-
*/
|
|
628
|
-
readonly NETWORK_AUTHENTICATION_REQUIRED: "NETWORK AUTHENTICATION REQUIRED";
|
|
629
|
-
};
|
|
630
|
-
type HttpStatusCode = ValuesType<typeof HttpStatusCode>;
|
|
631
|
-
type HttpStatusMessage = ValuesType<typeof HttpStatusMessage>;
|
|
632
|
-
export { HttpStatusCode, HttpStatusMessage };
|