@little-nebulae/http 0.2.0 → 0.3.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/dist/index.d.ts +354 -334
- package/dist/index.js +141 -121
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,29 @@
|
|
|
1
1
|
import { ValueOf } from "type-fest";
|
|
2
2
|
export declare const HTTP_HEADER_ENUM: {
|
|
3
3
|
readonly AUTHORIZATION: "authorization";
|
|
4
|
+
readonly CACHE_CONTROL: "cache-control";
|
|
5
|
+
readonly CONNECTION: "connection";
|
|
6
|
+
readonly CONTENT_ENCODING: "content-encoding";
|
|
7
|
+
readonly CONTENT_SECURITY_POLICY: "content-security-policy";
|
|
4
8
|
readonly CONTENT_TYPE: "content-type";
|
|
5
9
|
readonly COOKIE: "cookie";
|
|
10
|
+
readonly CROSS_ORIGIN_RESOURCE_POLICY: "cross-origin-resource-policy";
|
|
11
|
+
readonly DATE: "date";
|
|
12
|
+
readonly ETAG: "etag";
|
|
13
|
+
readonly EXPIRES: "expires";
|
|
14
|
+
readonly FORWARDED: "forwarded";
|
|
15
|
+
readonly HOST: "host";
|
|
16
|
+
readonly KEEP_ALIVE: "keep-alive";
|
|
17
|
+
readonly LAST_MODIFIED: "last-modified";
|
|
18
|
+
readonly LOCATION: "location";
|
|
19
|
+
readonly ORIGIN: "origin";
|
|
20
|
+
readonly REFERER: "referer";
|
|
21
|
+
readonly REFERRER_POLICY: "referrer-policy";
|
|
6
22
|
readonly RETRY_AFTER: "retry-after";
|
|
23
|
+
readonly SET_COOKIE: "set-cookie";
|
|
24
|
+
readonly TRANSFER_ENCODING: "transfer-encoding";
|
|
25
|
+
readonly UPGRADE: "upgrade";
|
|
26
|
+
readonly USER_AGENT: "user-agent";
|
|
7
27
|
};
|
|
8
28
|
export type HttpHeader = ValueOf<typeof HTTP_HEADER_ENUM>;
|
|
9
29
|
export declare const HTTP_REQUEST_METHOD_ENUM: {
|
|
@@ -20,677 +40,677 @@ export declare const HTTP_REQUEST_METHOD_ENUM: {
|
|
|
20
40
|
export type HttpRequestMethod = ValueOf<typeof HTTP_REQUEST_METHOD_ENUM>;
|
|
21
41
|
export declare const HTTP_RESPONSE_STATUS_RECORD: {
|
|
22
42
|
readonly BAD_REQUEST: {
|
|
23
|
-
readonly
|
|
24
|
-
readonly
|
|
43
|
+
readonly CODE: 400;
|
|
44
|
+
readonly TEXT: "Bad Request";
|
|
25
45
|
};
|
|
26
46
|
readonly UNAUTHORIZED: {
|
|
27
|
-
readonly
|
|
28
|
-
readonly
|
|
47
|
+
readonly CODE: 401;
|
|
48
|
+
readonly TEXT: "Unauthorized";
|
|
29
49
|
};
|
|
30
50
|
readonly PAYMENT_REQUIRED: {
|
|
31
|
-
readonly
|
|
32
|
-
readonly
|
|
51
|
+
readonly CODE: 402;
|
|
52
|
+
readonly TEXT: "Payment Required";
|
|
33
53
|
};
|
|
34
54
|
readonly FORBIDDEN: {
|
|
35
|
-
readonly
|
|
36
|
-
readonly
|
|
55
|
+
readonly CODE: 403;
|
|
56
|
+
readonly TEXT: "Forbidden";
|
|
37
57
|
};
|
|
38
58
|
readonly NOT_FOUND: {
|
|
39
|
-
readonly
|
|
40
|
-
readonly
|
|
59
|
+
readonly CODE: 404;
|
|
60
|
+
readonly TEXT: "Not Found";
|
|
41
61
|
};
|
|
42
62
|
readonly METHOD_NOT_ALLOWED: {
|
|
43
|
-
readonly
|
|
44
|
-
readonly
|
|
63
|
+
readonly CODE: 405;
|
|
64
|
+
readonly TEXT: "Method Not Allowed";
|
|
45
65
|
};
|
|
46
66
|
readonly NOT_ACCEPTABLE: {
|
|
47
|
-
readonly
|
|
48
|
-
readonly
|
|
67
|
+
readonly CODE: 406;
|
|
68
|
+
readonly TEXT: "Not Acceptable";
|
|
49
69
|
};
|
|
50
70
|
readonly PROXY_AUTHENTICATION_REQUIRED: {
|
|
51
|
-
readonly
|
|
52
|
-
readonly
|
|
71
|
+
readonly CODE: 407;
|
|
72
|
+
readonly TEXT: "Proxy Authentication Required";
|
|
53
73
|
};
|
|
54
74
|
readonly REQUEST_TIMEOUT: {
|
|
55
|
-
readonly
|
|
56
|
-
readonly
|
|
75
|
+
readonly CODE: 408;
|
|
76
|
+
readonly TEXT: "Request Timeout";
|
|
57
77
|
};
|
|
58
78
|
readonly CONFLICT: {
|
|
59
|
-
readonly
|
|
60
|
-
readonly
|
|
79
|
+
readonly CODE: 409;
|
|
80
|
+
readonly TEXT: "Conflict";
|
|
61
81
|
};
|
|
62
82
|
readonly GONE: {
|
|
63
|
-
readonly
|
|
64
|
-
readonly
|
|
83
|
+
readonly CODE: 410;
|
|
84
|
+
readonly TEXT: "Gone";
|
|
65
85
|
};
|
|
66
86
|
readonly LENGTH_REQUIRED: {
|
|
67
|
-
readonly
|
|
68
|
-
readonly
|
|
87
|
+
readonly CODE: 411;
|
|
88
|
+
readonly TEXT: "Length Required";
|
|
69
89
|
};
|
|
70
90
|
readonly PRECONDITION_FAILED: {
|
|
71
|
-
readonly
|
|
72
|
-
readonly
|
|
91
|
+
readonly CODE: 412;
|
|
92
|
+
readonly TEXT: "Precondition Failed";
|
|
73
93
|
};
|
|
74
94
|
readonly CONTENT_TOO_LARGE: {
|
|
75
|
-
readonly
|
|
76
|
-
readonly
|
|
95
|
+
readonly CODE: 413;
|
|
96
|
+
readonly TEXT: "Content Too Large";
|
|
77
97
|
};
|
|
78
98
|
readonly URI_TOO_LONG: {
|
|
79
|
-
readonly
|
|
80
|
-
readonly
|
|
99
|
+
readonly CODE: 414;
|
|
100
|
+
readonly TEXT: "URI Too Long";
|
|
81
101
|
};
|
|
82
102
|
readonly UNSUPPORTED_MEDIA_TYPE: {
|
|
83
|
-
readonly
|
|
84
|
-
readonly
|
|
103
|
+
readonly CODE: 415;
|
|
104
|
+
readonly TEXT: "Unsupported Media Type";
|
|
85
105
|
};
|
|
86
106
|
readonly RANGE_NOT_SATISFIABLE: {
|
|
87
|
-
readonly
|
|
88
|
-
readonly
|
|
107
|
+
readonly CODE: 416;
|
|
108
|
+
readonly TEXT: "Range Not Satisfiable";
|
|
89
109
|
};
|
|
90
110
|
readonly EXPECTATION_FAILED: {
|
|
91
|
-
readonly
|
|
92
|
-
readonly
|
|
111
|
+
readonly CODE: 417;
|
|
112
|
+
readonly TEXT: "Expectation Failed";
|
|
93
113
|
};
|
|
94
114
|
readonly IM_A_TEAPOT: {
|
|
95
|
-
readonly
|
|
96
|
-
readonly
|
|
115
|
+
readonly CODE: 418;
|
|
116
|
+
readonly TEXT: "I'm a teapot";
|
|
97
117
|
};
|
|
98
118
|
readonly MISDIRECTED_REQUEST: {
|
|
99
|
-
readonly
|
|
100
|
-
readonly
|
|
119
|
+
readonly CODE: 421;
|
|
120
|
+
readonly TEXT: "Misdirected Request";
|
|
101
121
|
};
|
|
102
122
|
readonly UNPROCESSABLE_CONTENT: {
|
|
103
|
-
readonly
|
|
104
|
-
readonly
|
|
123
|
+
readonly CODE: 422;
|
|
124
|
+
readonly TEXT: "Unprocessable Content";
|
|
105
125
|
};
|
|
106
126
|
readonly LOCKED: {
|
|
107
|
-
readonly
|
|
108
|
-
readonly
|
|
127
|
+
readonly CODE: 423;
|
|
128
|
+
readonly TEXT: "Locked";
|
|
109
129
|
};
|
|
110
130
|
readonly FAILED_DEPENDENCY: {
|
|
111
|
-
readonly
|
|
112
|
-
readonly
|
|
131
|
+
readonly CODE: 424;
|
|
132
|
+
readonly TEXT: "Failed Dependency";
|
|
113
133
|
};
|
|
114
134
|
readonly TOO_EARLY: {
|
|
115
|
-
readonly
|
|
116
|
-
readonly
|
|
135
|
+
readonly CODE: 425;
|
|
136
|
+
readonly TEXT: "Too Early";
|
|
117
137
|
};
|
|
118
138
|
readonly UPGRADE_REQUIRED: {
|
|
119
|
-
readonly
|
|
120
|
-
readonly
|
|
139
|
+
readonly CODE: 426;
|
|
140
|
+
readonly TEXT: "Upgrade Required";
|
|
121
141
|
};
|
|
122
142
|
readonly PRECONDITION_REQUIRED: {
|
|
123
|
-
readonly
|
|
124
|
-
readonly
|
|
143
|
+
readonly CODE: 428;
|
|
144
|
+
readonly TEXT: "Precondition Required";
|
|
125
145
|
};
|
|
126
146
|
readonly TOO_MANY_REQUESTS: {
|
|
127
|
-
readonly
|
|
128
|
-
readonly
|
|
147
|
+
readonly CODE: 429;
|
|
148
|
+
readonly TEXT: "Too Many Requests";
|
|
129
149
|
};
|
|
130
150
|
readonly REQUEST_HEADER_FIELDS_TOO_LARGE: {
|
|
131
|
-
readonly
|
|
132
|
-
readonly
|
|
151
|
+
readonly CODE: 431;
|
|
152
|
+
readonly TEXT: "Request Header Fields Too Large";
|
|
133
153
|
};
|
|
134
154
|
readonly UNAVAILABLE_FOR_LEGAL_REASONS: {
|
|
135
|
-
readonly
|
|
136
|
-
readonly
|
|
155
|
+
readonly CODE: 451;
|
|
156
|
+
readonly TEXT: "Unavailable For Legal Reasons";
|
|
137
157
|
};
|
|
138
158
|
readonly INTERNAL_SERVER_ERROR: {
|
|
139
|
-
readonly
|
|
140
|
-
readonly
|
|
159
|
+
readonly CODE: 500;
|
|
160
|
+
readonly TEXT: "Internal Server Error";
|
|
141
161
|
};
|
|
142
162
|
readonly NOT_IMPLEMENTED: {
|
|
143
|
-
readonly
|
|
144
|
-
readonly
|
|
163
|
+
readonly CODE: 501;
|
|
164
|
+
readonly TEXT: "Not Implemented";
|
|
145
165
|
};
|
|
146
166
|
readonly BAD_GATEWAY: {
|
|
147
|
-
readonly
|
|
148
|
-
readonly
|
|
167
|
+
readonly CODE: 502;
|
|
168
|
+
readonly TEXT: "Bad Gateway";
|
|
149
169
|
};
|
|
150
170
|
readonly SERVICE_UNAVAILABLE: {
|
|
151
|
-
readonly
|
|
152
|
-
readonly
|
|
171
|
+
readonly CODE: 503;
|
|
172
|
+
readonly TEXT: "Service Unavailable";
|
|
153
173
|
};
|
|
154
174
|
readonly GATEWAY_TIMEOUT: {
|
|
155
|
-
readonly
|
|
156
|
-
readonly
|
|
175
|
+
readonly CODE: 504;
|
|
176
|
+
readonly TEXT: "Gateway Timeout";
|
|
157
177
|
};
|
|
158
178
|
readonly HTTP_VERSION_NOT_SUPPORTED: {
|
|
159
|
-
readonly
|
|
160
|
-
readonly
|
|
179
|
+
readonly CODE: 505;
|
|
180
|
+
readonly TEXT: "HTTP Version Not Supported";
|
|
161
181
|
};
|
|
162
182
|
readonly VARIANT_ALSO_NEGOTIATES: {
|
|
163
|
-
readonly
|
|
164
|
-
readonly
|
|
183
|
+
readonly CODE: 506;
|
|
184
|
+
readonly TEXT: "Variant Also Negotiates";
|
|
165
185
|
};
|
|
166
186
|
readonly INSUFFICIENT_STORAGE: {
|
|
167
|
-
readonly
|
|
168
|
-
readonly
|
|
187
|
+
readonly CODE: 507;
|
|
188
|
+
readonly TEXT: "Insufficient Storage";
|
|
169
189
|
};
|
|
170
190
|
readonly LOOP_DETECTED: {
|
|
171
|
-
readonly
|
|
172
|
-
readonly
|
|
191
|
+
readonly CODE: 508;
|
|
192
|
+
readonly TEXT: "Loop Detected";
|
|
173
193
|
};
|
|
174
194
|
readonly NOT_EXTENDED: {
|
|
175
|
-
readonly
|
|
176
|
-
readonly
|
|
195
|
+
readonly CODE: 510;
|
|
196
|
+
readonly TEXT: "Not Extended";
|
|
177
197
|
};
|
|
178
198
|
readonly NETWORK_AUTHENTICATION_REQUIRED: {
|
|
179
|
-
readonly
|
|
180
|
-
readonly
|
|
199
|
+
readonly CODE: 511;
|
|
200
|
+
readonly TEXT: "Network Authentication Required";
|
|
181
201
|
};
|
|
182
202
|
readonly CONTINUE: {
|
|
183
|
-
readonly
|
|
184
|
-
readonly
|
|
203
|
+
readonly CODE: 100;
|
|
204
|
+
readonly TEXT: "Continue";
|
|
185
205
|
};
|
|
186
206
|
readonly SWITCHING_PROTOCOLS: {
|
|
187
|
-
readonly
|
|
188
|
-
readonly
|
|
207
|
+
readonly CODE: 101;
|
|
208
|
+
readonly TEXT: "Switching Protocols";
|
|
189
209
|
};
|
|
190
210
|
readonly EARLY_HINTS: {
|
|
191
|
-
readonly
|
|
192
|
-
readonly
|
|
211
|
+
readonly CODE: 103;
|
|
212
|
+
readonly TEXT: "Early Hints";
|
|
193
213
|
};
|
|
194
214
|
readonly MULTIPLE_CHOICES: {
|
|
195
|
-
readonly
|
|
196
|
-
readonly
|
|
215
|
+
readonly CODE: 300;
|
|
216
|
+
readonly TEXT: "Multiple Choices";
|
|
197
217
|
};
|
|
198
218
|
readonly MOVED_PERMANENTLY: {
|
|
199
|
-
readonly
|
|
200
|
-
readonly
|
|
219
|
+
readonly CODE: 301;
|
|
220
|
+
readonly TEXT: "Moved Permanently";
|
|
201
221
|
};
|
|
202
222
|
readonly FOUND: {
|
|
203
|
-
readonly
|
|
204
|
-
readonly
|
|
223
|
+
readonly CODE: 302;
|
|
224
|
+
readonly TEXT: "Found";
|
|
205
225
|
};
|
|
206
226
|
readonly SEE_OTHER: {
|
|
207
|
-
readonly
|
|
208
|
-
readonly
|
|
227
|
+
readonly CODE: 303;
|
|
228
|
+
readonly TEXT: "See Other";
|
|
209
229
|
};
|
|
210
230
|
readonly NOT_MODIFIED: {
|
|
211
|
-
readonly
|
|
212
|
-
readonly
|
|
231
|
+
readonly CODE: 304;
|
|
232
|
+
readonly TEXT: "Not Modified";
|
|
213
233
|
};
|
|
214
234
|
readonly TEMPORARY_REDIRECT: {
|
|
215
|
-
readonly
|
|
216
|
-
readonly
|
|
235
|
+
readonly CODE: 307;
|
|
236
|
+
readonly TEXT: "Temporary Redirect";
|
|
217
237
|
};
|
|
218
238
|
readonly PERMANENT_REDIRECT: {
|
|
219
|
-
readonly
|
|
220
|
-
readonly
|
|
239
|
+
readonly CODE: 308;
|
|
240
|
+
readonly TEXT: "Permanent Redirect";
|
|
221
241
|
};
|
|
222
242
|
readonly OK: {
|
|
223
|
-
readonly
|
|
224
|
-
readonly
|
|
243
|
+
readonly CODE: 200;
|
|
244
|
+
readonly TEXT: "OK";
|
|
225
245
|
};
|
|
226
246
|
readonly CREATED: {
|
|
227
|
-
readonly
|
|
228
|
-
readonly
|
|
247
|
+
readonly CODE: 201;
|
|
248
|
+
readonly TEXT: "Created";
|
|
229
249
|
};
|
|
230
250
|
readonly ACCEPTED: {
|
|
231
|
-
readonly
|
|
232
|
-
readonly
|
|
251
|
+
readonly CODE: 202;
|
|
252
|
+
readonly TEXT: "Accepted";
|
|
233
253
|
};
|
|
234
254
|
readonly NON_AUTHORITATIVE_INFORMATION: {
|
|
235
|
-
readonly
|
|
236
|
-
readonly
|
|
255
|
+
readonly CODE: 203;
|
|
256
|
+
readonly TEXT: "Non-Authoritative Information";
|
|
237
257
|
};
|
|
238
258
|
readonly NO_CONTENT: {
|
|
239
|
-
readonly
|
|
240
|
-
readonly
|
|
259
|
+
readonly CODE: 204;
|
|
260
|
+
readonly TEXT: "No Content";
|
|
241
261
|
};
|
|
242
262
|
readonly RESET_CONTENT: {
|
|
243
|
-
readonly
|
|
244
|
-
readonly
|
|
263
|
+
readonly CODE: 205;
|
|
264
|
+
readonly TEXT: "Reset Content";
|
|
245
265
|
};
|
|
246
266
|
readonly PARTIAL_CONTENT: {
|
|
247
|
-
readonly
|
|
248
|
-
readonly
|
|
267
|
+
readonly CODE: 206;
|
|
268
|
+
readonly TEXT: "Partial Content";
|
|
249
269
|
};
|
|
250
270
|
readonly MULTI_STATUS: {
|
|
251
|
-
readonly
|
|
252
|
-
readonly
|
|
271
|
+
readonly CODE: 207;
|
|
272
|
+
readonly TEXT: "Multi-Status";
|
|
253
273
|
};
|
|
254
274
|
readonly ALREADY_REPORTED: {
|
|
255
|
-
readonly
|
|
256
|
-
readonly
|
|
275
|
+
readonly CODE: 208;
|
|
276
|
+
readonly TEXT: "Already Reported";
|
|
257
277
|
};
|
|
258
278
|
readonly IM_USED: {
|
|
259
|
-
readonly
|
|
260
|
-
readonly
|
|
279
|
+
readonly CODE: 226;
|
|
280
|
+
readonly TEXT: "IM Used";
|
|
261
281
|
};
|
|
262
282
|
};
|
|
263
283
|
type HttpResponseStatus = ValueOf<typeof HTTP_RESPONSE_STATUS_RECORD>;
|
|
264
|
-
export type HttpResponseStatusCode = HttpResponseStatus["
|
|
265
|
-
export type HttpResponseStatusText = HttpResponseStatus["
|
|
284
|
+
export type HttpResponseStatusCode = HttpResponseStatus["CODE"];
|
|
285
|
+
export type HttpResponseStatusText = HttpResponseStatus["TEXT"];
|
|
266
286
|
export declare const HTTP_INFORMATIONAL_RESPONSE_STATUS_ENUM: {
|
|
267
287
|
readonly CONTINUE: {
|
|
268
|
-
readonly
|
|
269
|
-
readonly
|
|
288
|
+
readonly CODE: 100;
|
|
289
|
+
readonly TEXT: "Continue";
|
|
270
290
|
};
|
|
271
291
|
readonly SWITCHING_PROTOCOLS: {
|
|
272
|
-
readonly
|
|
273
|
-
readonly
|
|
292
|
+
readonly CODE: 101;
|
|
293
|
+
readonly TEXT: "Switching Protocols";
|
|
274
294
|
};
|
|
275
295
|
readonly EARLY_HINTS: {
|
|
276
|
-
readonly
|
|
277
|
-
readonly
|
|
296
|
+
readonly CODE: 103;
|
|
297
|
+
readonly TEXT: "Early Hints";
|
|
278
298
|
};
|
|
279
299
|
};
|
|
280
300
|
type HttpInformationalResponseStatus = ValueOf<typeof HTTP_INFORMATIONAL_RESPONSE_STATUS_ENUM>;
|
|
281
|
-
export type HttpInformationalResponseStatusCode = HttpInformationalResponseStatus["
|
|
282
|
-
export type HttpInformationalResponseStatusText = HttpInformationalResponseStatus["
|
|
301
|
+
export type HttpInformationalResponseStatusCode = HttpInformationalResponseStatus["CODE"];
|
|
302
|
+
export type HttpInformationalResponseStatusText = HttpInformationalResponseStatus["TEXT"];
|
|
283
303
|
export declare const HTTP_SUCCESSFUL_RESPONSE_STATUS_ENUM: {
|
|
284
304
|
readonly OK: {
|
|
285
|
-
readonly
|
|
286
|
-
readonly
|
|
305
|
+
readonly CODE: 200;
|
|
306
|
+
readonly TEXT: "OK";
|
|
287
307
|
};
|
|
288
308
|
readonly CREATED: {
|
|
289
|
-
readonly
|
|
290
|
-
readonly
|
|
309
|
+
readonly CODE: 201;
|
|
310
|
+
readonly TEXT: "Created";
|
|
291
311
|
};
|
|
292
312
|
readonly ACCEPTED: {
|
|
293
|
-
readonly
|
|
294
|
-
readonly
|
|
313
|
+
readonly CODE: 202;
|
|
314
|
+
readonly TEXT: "Accepted";
|
|
295
315
|
};
|
|
296
316
|
readonly NON_AUTHORITATIVE_INFORMATION: {
|
|
297
|
-
readonly
|
|
298
|
-
readonly
|
|
317
|
+
readonly CODE: 203;
|
|
318
|
+
readonly TEXT: "Non-Authoritative Information";
|
|
299
319
|
};
|
|
300
320
|
readonly NO_CONTENT: {
|
|
301
|
-
readonly
|
|
302
|
-
readonly
|
|
321
|
+
readonly CODE: 204;
|
|
322
|
+
readonly TEXT: "No Content";
|
|
303
323
|
};
|
|
304
324
|
readonly RESET_CONTENT: {
|
|
305
|
-
readonly
|
|
306
|
-
readonly
|
|
325
|
+
readonly CODE: 205;
|
|
326
|
+
readonly TEXT: "Reset Content";
|
|
307
327
|
};
|
|
308
328
|
readonly PARTIAL_CONTENT: {
|
|
309
|
-
readonly
|
|
310
|
-
readonly
|
|
329
|
+
readonly CODE: 206;
|
|
330
|
+
readonly TEXT: "Partial Content";
|
|
311
331
|
};
|
|
312
332
|
readonly MULTI_STATUS: {
|
|
313
|
-
readonly
|
|
314
|
-
readonly
|
|
333
|
+
readonly CODE: 207;
|
|
334
|
+
readonly TEXT: "Multi-Status";
|
|
315
335
|
};
|
|
316
336
|
readonly ALREADY_REPORTED: {
|
|
317
|
-
readonly
|
|
318
|
-
readonly
|
|
337
|
+
readonly CODE: 208;
|
|
338
|
+
readonly TEXT: "Already Reported";
|
|
319
339
|
};
|
|
320
340
|
readonly IM_USED: {
|
|
321
|
-
readonly
|
|
322
|
-
readonly
|
|
341
|
+
readonly CODE: 226;
|
|
342
|
+
readonly TEXT: "IM Used";
|
|
323
343
|
};
|
|
324
344
|
};
|
|
325
345
|
type HttpSuccessfulResponseStatus = ValueOf<typeof HTTP_SUCCESSFUL_RESPONSE_STATUS_ENUM>;
|
|
326
|
-
export type HttpSuccessfulResponseStatusCode = HttpSuccessfulResponseStatus["
|
|
327
|
-
export type HttpSuccessfulResponseStatusText = HttpSuccessfulResponseStatus["
|
|
346
|
+
export type HttpSuccessfulResponseStatusCode = HttpSuccessfulResponseStatus["CODE"];
|
|
347
|
+
export type HttpSuccessfulResponseStatusText = HttpSuccessfulResponseStatus["TEXT"];
|
|
328
348
|
export declare const HTTP_REDIRECTION_RESPONSE_STATUS_ENUM: {
|
|
329
349
|
readonly MULTIPLE_CHOICES: {
|
|
330
|
-
readonly
|
|
331
|
-
readonly
|
|
350
|
+
readonly CODE: 300;
|
|
351
|
+
readonly TEXT: "Multiple Choices";
|
|
332
352
|
};
|
|
333
353
|
readonly MOVED_PERMANENTLY: {
|
|
334
|
-
readonly
|
|
335
|
-
readonly
|
|
354
|
+
readonly CODE: 301;
|
|
355
|
+
readonly TEXT: "Moved Permanently";
|
|
336
356
|
};
|
|
337
357
|
readonly FOUND: {
|
|
338
|
-
readonly
|
|
339
|
-
readonly
|
|
358
|
+
readonly CODE: 302;
|
|
359
|
+
readonly TEXT: "Found";
|
|
340
360
|
};
|
|
341
361
|
readonly SEE_OTHER: {
|
|
342
|
-
readonly
|
|
343
|
-
readonly
|
|
362
|
+
readonly CODE: 303;
|
|
363
|
+
readonly TEXT: "See Other";
|
|
344
364
|
};
|
|
345
365
|
readonly NOT_MODIFIED: {
|
|
346
|
-
readonly
|
|
347
|
-
readonly
|
|
366
|
+
readonly CODE: 304;
|
|
367
|
+
readonly TEXT: "Not Modified";
|
|
348
368
|
};
|
|
349
369
|
readonly TEMPORARY_REDIRECT: {
|
|
350
|
-
readonly
|
|
351
|
-
readonly
|
|
370
|
+
readonly CODE: 307;
|
|
371
|
+
readonly TEXT: "Temporary Redirect";
|
|
352
372
|
};
|
|
353
373
|
readonly PERMANENT_REDIRECT: {
|
|
354
|
-
readonly
|
|
355
|
-
readonly
|
|
374
|
+
readonly CODE: 308;
|
|
375
|
+
readonly TEXT: "Permanent Redirect";
|
|
356
376
|
};
|
|
357
377
|
};
|
|
358
378
|
type HttpRedirectionResponseStatus = ValueOf<typeof HTTP_REDIRECTION_RESPONSE_STATUS_ENUM>;
|
|
359
|
-
export type HttpRedirectionResponseStatusCode = HttpRedirectionResponseStatus["
|
|
360
|
-
export type HttpRedirectionResponseStatusText = HttpRedirectionResponseStatus["
|
|
379
|
+
export type HttpRedirectionResponseStatusCode = HttpRedirectionResponseStatus["CODE"];
|
|
380
|
+
export type HttpRedirectionResponseStatusText = HttpRedirectionResponseStatus["TEXT"];
|
|
361
381
|
export declare const HTTP_ERROR_RESPONSE_STATUS_ENUM: {
|
|
362
382
|
readonly BAD_REQUEST: {
|
|
363
|
-
readonly
|
|
364
|
-
readonly
|
|
383
|
+
readonly CODE: 400;
|
|
384
|
+
readonly TEXT: "Bad Request";
|
|
365
385
|
};
|
|
366
386
|
readonly UNAUTHORIZED: {
|
|
367
|
-
readonly
|
|
368
|
-
readonly
|
|
387
|
+
readonly CODE: 401;
|
|
388
|
+
readonly TEXT: "Unauthorized";
|
|
369
389
|
};
|
|
370
390
|
readonly PAYMENT_REQUIRED: {
|
|
371
|
-
readonly
|
|
372
|
-
readonly
|
|
391
|
+
readonly CODE: 402;
|
|
392
|
+
readonly TEXT: "Payment Required";
|
|
373
393
|
};
|
|
374
394
|
readonly FORBIDDEN: {
|
|
375
|
-
readonly
|
|
376
|
-
readonly
|
|
395
|
+
readonly CODE: 403;
|
|
396
|
+
readonly TEXT: "Forbidden";
|
|
377
397
|
};
|
|
378
398
|
readonly NOT_FOUND: {
|
|
379
|
-
readonly
|
|
380
|
-
readonly
|
|
399
|
+
readonly CODE: 404;
|
|
400
|
+
readonly TEXT: "Not Found";
|
|
381
401
|
};
|
|
382
402
|
readonly METHOD_NOT_ALLOWED: {
|
|
383
|
-
readonly
|
|
384
|
-
readonly
|
|
403
|
+
readonly CODE: 405;
|
|
404
|
+
readonly TEXT: "Method Not Allowed";
|
|
385
405
|
};
|
|
386
406
|
readonly NOT_ACCEPTABLE: {
|
|
387
|
-
readonly
|
|
388
|
-
readonly
|
|
407
|
+
readonly CODE: 406;
|
|
408
|
+
readonly TEXT: "Not Acceptable";
|
|
389
409
|
};
|
|
390
410
|
readonly PROXY_AUTHENTICATION_REQUIRED: {
|
|
391
|
-
readonly
|
|
392
|
-
readonly
|
|
411
|
+
readonly CODE: 407;
|
|
412
|
+
readonly TEXT: "Proxy Authentication Required";
|
|
393
413
|
};
|
|
394
414
|
readonly REQUEST_TIMEOUT: {
|
|
395
|
-
readonly
|
|
396
|
-
readonly
|
|
415
|
+
readonly CODE: 408;
|
|
416
|
+
readonly TEXT: "Request Timeout";
|
|
397
417
|
};
|
|
398
418
|
readonly CONFLICT: {
|
|
399
|
-
readonly
|
|
400
|
-
readonly
|
|
419
|
+
readonly CODE: 409;
|
|
420
|
+
readonly TEXT: "Conflict";
|
|
401
421
|
};
|
|
402
422
|
readonly GONE: {
|
|
403
|
-
readonly
|
|
404
|
-
readonly
|
|
423
|
+
readonly CODE: 410;
|
|
424
|
+
readonly TEXT: "Gone";
|
|
405
425
|
};
|
|
406
426
|
readonly LENGTH_REQUIRED: {
|
|
407
|
-
readonly
|
|
408
|
-
readonly
|
|
427
|
+
readonly CODE: 411;
|
|
428
|
+
readonly TEXT: "Length Required";
|
|
409
429
|
};
|
|
410
430
|
readonly PRECONDITION_FAILED: {
|
|
411
|
-
readonly
|
|
412
|
-
readonly
|
|
431
|
+
readonly CODE: 412;
|
|
432
|
+
readonly TEXT: "Precondition Failed";
|
|
413
433
|
};
|
|
414
434
|
readonly CONTENT_TOO_LARGE: {
|
|
415
|
-
readonly
|
|
416
|
-
readonly
|
|
435
|
+
readonly CODE: 413;
|
|
436
|
+
readonly TEXT: "Content Too Large";
|
|
417
437
|
};
|
|
418
438
|
readonly URI_TOO_LONG: {
|
|
419
|
-
readonly
|
|
420
|
-
readonly
|
|
439
|
+
readonly CODE: 414;
|
|
440
|
+
readonly TEXT: "URI Too Long";
|
|
421
441
|
};
|
|
422
442
|
readonly UNSUPPORTED_MEDIA_TYPE: {
|
|
423
|
-
readonly
|
|
424
|
-
readonly
|
|
443
|
+
readonly CODE: 415;
|
|
444
|
+
readonly TEXT: "Unsupported Media Type";
|
|
425
445
|
};
|
|
426
446
|
readonly RANGE_NOT_SATISFIABLE: {
|
|
427
|
-
readonly
|
|
428
|
-
readonly
|
|
447
|
+
readonly CODE: 416;
|
|
448
|
+
readonly TEXT: "Range Not Satisfiable";
|
|
429
449
|
};
|
|
430
450
|
readonly EXPECTATION_FAILED: {
|
|
431
|
-
readonly
|
|
432
|
-
readonly
|
|
451
|
+
readonly CODE: 417;
|
|
452
|
+
readonly TEXT: "Expectation Failed";
|
|
433
453
|
};
|
|
434
454
|
readonly IM_A_TEAPOT: {
|
|
435
|
-
readonly
|
|
436
|
-
readonly
|
|
455
|
+
readonly CODE: 418;
|
|
456
|
+
readonly TEXT: "I'm a teapot";
|
|
437
457
|
};
|
|
438
458
|
readonly MISDIRECTED_REQUEST: {
|
|
439
|
-
readonly
|
|
440
|
-
readonly
|
|
459
|
+
readonly CODE: 421;
|
|
460
|
+
readonly TEXT: "Misdirected Request";
|
|
441
461
|
};
|
|
442
462
|
readonly UNPROCESSABLE_CONTENT: {
|
|
443
|
-
readonly
|
|
444
|
-
readonly
|
|
463
|
+
readonly CODE: 422;
|
|
464
|
+
readonly TEXT: "Unprocessable Content";
|
|
445
465
|
};
|
|
446
466
|
readonly LOCKED: {
|
|
447
|
-
readonly
|
|
448
|
-
readonly
|
|
467
|
+
readonly CODE: 423;
|
|
468
|
+
readonly TEXT: "Locked";
|
|
449
469
|
};
|
|
450
470
|
readonly FAILED_DEPENDENCY: {
|
|
451
|
-
readonly
|
|
452
|
-
readonly
|
|
471
|
+
readonly CODE: 424;
|
|
472
|
+
readonly TEXT: "Failed Dependency";
|
|
453
473
|
};
|
|
454
474
|
readonly TOO_EARLY: {
|
|
455
|
-
readonly
|
|
456
|
-
readonly
|
|
475
|
+
readonly CODE: 425;
|
|
476
|
+
readonly TEXT: "Too Early";
|
|
457
477
|
};
|
|
458
478
|
readonly UPGRADE_REQUIRED: {
|
|
459
|
-
readonly
|
|
460
|
-
readonly
|
|
479
|
+
readonly CODE: 426;
|
|
480
|
+
readonly TEXT: "Upgrade Required";
|
|
461
481
|
};
|
|
462
482
|
readonly PRECONDITION_REQUIRED: {
|
|
463
|
-
readonly
|
|
464
|
-
readonly
|
|
483
|
+
readonly CODE: 428;
|
|
484
|
+
readonly TEXT: "Precondition Required";
|
|
465
485
|
};
|
|
466
486
|
readonly TOO_MANY_REQUESTS: {
|
|
467
|
-
readonly
|
|
468
|
-
readonly
|
|
487
|
+
readonly CODE: 429;
|
|
488
|
+
readonly TEXT: "Too Many Requests";
|
|
469
489
|
};
|
|
470
490
|
readonly REQUEST_HEADER_FIELDS_TOO_LARGE: {
|
|
471
|
-
readonly
|
|
472
|
-
readonly
|
|
491
|
+
readonly CODE: 431;
|
|
492
|
+
readonly TEXT: "Request Header Fields Too Large";
|
|
473
493
|
};
|
|
474
494
|
readonly UNAVAILABLE_FOR_LEGAL_REASONS: {
|
|
475
|
-
readonly
|
|
476
|
-
readonly
|
|
495
|
+
readonly CODE: 451;
|
|
496
|
+
readonly TEXT: "Unavailable For Legal Reasons";
|
|
477
497
|
};
|
|
478
498
|
readonly INTERNAL_SERVER_ERROR: {
|
|
479
|
-
readonly
|
|
480
|
-
readonly
|
|
499
|
+
readonly CODE: 500;
|
|
500
|
+
readonly TEXT: "Internal Server Error";
|
|
481
501
|
};
|
|
482
502
|
readonly NOT_IMPLEMENTED: {
|
|
483
|
-
readonly
|
|
484
|
-
readonly
|
|
503
|
+
readonly CODE: 501;
|
|
504
|
+
readonly TEXT: "Not Implemented";
|
|
485
505
|
};
|
|
486
506
|
readonly BAD_GATEWAY: {
|
|
487
|
-
readonly
|
|
488
|
-
readonly
|
|
507
|
+
readonly CODE: 502;
|
|
508
|
+
readonly TEXT: "Bad Gateway";
|
|
489
509
|
};
|
|
490
510
|
readonly SERVICE_UNAVAILABLE: {
|
|
491
|
-
readonly
|
|
492
|
-
readonly
|
|
511
|
+
readonly CODE: 503;
|
|
512
|
+
readonly TEXT: "Service Unavailable";
|
|
493
513
|
};
|
|
494
514
|
readonly GATEWAY_TIMEOUT: {
|
|
495
|
-
readonly
|
|
496
|
-
readonly
|
|
515
|
+
readonly CODE: 504;
|
|
516
|
+
readonly TEXT: "Gateway Timeout";
|
|
497
517
|
};
|
|
498
518
|
readonly HTTP_VERSION_NOT_SUPPORTED: {
|
|
499
|
-
readonly
|
|
500
|
-
readonly
|
|
519
|
+
readonly CODE: 505;
|
|
520
|
+
readonly TEXT: "HTTP Version Not Supported";
|
|
501
521
|
};
|
|
502
522
|
readonly VARIANT_ALSO_NEGOTIATES: {
|
|
503
|
-
readonly
|
|
504
|
-
readonly
|
|
523
|
+
readonly CODE: 506;
|
|
524
|
+
readonly TEXT: "Variant Also Negotiates";
|
|
505
525
|
};
|
|
506
526
|
readonly INSUFFICIENT_STORAGE: {
|
|
507
|
-
readonly
|
|
508
|
-
readonly
|
|
527
|
+
readonly CODE: 507;
|
|
528
|
+
readonly TEXT: "Insufficient Storage";
|
|
509
529
|
};
|
|
510
530
|
readonly LOOP_DETECTED: {
|
|
511
|
-
readonly
|
|
512
|
-
readonly
|
|
531
|
+
readonly CODE: 508;
|
|
532
|
+
readonly TEXT: "Loop Detected";
|
|
513
533
|
};
|
|
514
534
|
readonly NOT_EXTENDED: {
|
|
515
|
-
readonly
|
|
516
|
-
readonly
|
|
535
|
+
readonly CODE: 510;
|
|
536
|
+
readonly TEXT: "Not Extended";
|
|
517
537
|
};
|
|
518
538
|
readonly NETWORK_AUTHENTICATION_REQUIRED: {
|
|
519
|
-
readonly
|
|
520
|
-
readonly
|
|
539
|
+
readonly CODE: 511;
|
|
540
|
+
readonly TEXT: "Network Authentication Required";
|
|
521
541
|
};
|
|
522
542
|
};
|
|
523
543
|
type HttpErrorResponseStatus = ValueOf<typeof HTTP_ERROR_RESPONSE_STATUS_ENUM>;
|
|
524
|
-
export type HttpErrorResponseStatusCode = HttpErrorResponseStatus["
|
|
525
|
-
export type HttpErrorResponseStatusText = HttpErrorResponseStatus["
|
|
544
|
+
export type HttpErrorResponseStatusCode = HttpErrorResponseStatus["CODE"];
|
|
545
|
+
export type HttpErrorResponseStatusText = HttpErrorResponseStatus["TEXT"];
|
|
526
546
|
export declare const HTTP_CLIENT_ERROR_RESPONSE_STATUS_ENUM: {
|
|
527
547
|
readonly BAD_REQUEST: {
|
|
528
|
-
readonly
|
|
529
|
-
readonly
|
|
548
|
+
readonly CODE: 400;
|
|
549
|
+
readonly TEXT: "Bad Request";
|
|
530
550
|
};
|
|
531
551
|
readonly UNAUTHORIZED: {
|
|
532
|
-
readonly
|
|
533
|
-
readonly
|
|
552
|
+
readonly CODE: 401;
|
|
553
|
+
readonly TEXT: "Unauthorized";
|
|
534
554
|
};
|
|
535
555
|
readonly PAYMENT_REQUIRED: {
|
|
536
|
-
readonly
|
|
537
|
-
readonly
|
|
556
|
+
readonly CODE: 402;
|
|
557
|
+
readonly TEXT: "Payment Required";
|
|
538
558
|
};
|
|
539
559
|
readonly FORBIDDEN: {
|
|
540
|
-
readonly
|
|
541
|
-
readonly
|
|
560
|
+
readonly CODE: 403;
|
|
561
|
+
readonly TEXT: "Forbidden";
|
|
542
562
|
};
|
|
543
563
|
readonly NOT_FOUND: {
|
|
544
|
-
readonly
|
|
545
|
-
readonly
|
|
564
|
+
readonly CODE: 404;
|
|
565
|
+
readonly TEXT: "Not Found";
|
|
546
566
|
};
|
|
547
567
|
readonly METHOD_NOT_ALLOWED: {
|
|
548
|
-
readonly
|
|
549
|
-
readonly
|
|
568
|
+
readonly CODE: 405;
|
|
569
|
+
readonly TEXT: "Method Not Allowed";
|
|
550
570
|
};
|
|
551
571
|
readonly NOT_ACCEPTABLE: {
|
|
552
|
-
readonly
|
|
553
|
-
readonly
|
|
572
|
+
readonly CODE: 406;
|
|
573
|
+
readonly TEXT: "Not Acceptable";
|
|
554
574
|
};
|
|
555
575
|
readonly PROXY_AUTHENTICATION_REQUIRED: {
|
|
556
|
-
readonly
|
|
557
|
-
readonly
|
|
576
|
+
readonly CODE: 407;
|
|
577
|
+
readonly TEXT: "Proxy Authentication Required";
|
|
558
578
|
};
|
|
559
579
|
readonly REQUEST_TIMEOUT: {
|
|
560
|
-
readonly
|
|
561
|
-
readonly
|
|
580
|
+
readonly CODE: 408;
|
|
581
|
+
readonly TEXT: "Request Timeout";
|
|
562
582
|
};
|
|
563
583
|
readonly CONFLICT: {
|
|
564
|
-
readonly
|
|
565
|
-
readonly
|
|
584
|
+
readonly CODE: 409;
|
|
585
|
+
readonly TEXT: "Conflict";
|
|
566
586
|
};
|
|
567
587
|
readonly GONE: {
|
|
568
|
-
readonly
|
|
569
|
-
readonly
|
|
588
|
+
readonly CODE: 410;
|
|
589
|
+
readonly TEXT: "Gone";
|
|
570
590
|
};
|
|
571
591
|
readonly LENGTH_REQUIRED: {
|
|
572
|
-
readonly
|
|
573
|
-
readonly
|
|
592
|
+
readonly CODE: 411;
|
|
593
|
+
readonly TEXT: "Length Required";
|
|
574
594
|
};
|
|
575
595
|
readonly PRECONDITION_FAILED: {
|
|
576
|
-
readonly
|
|
577
|
-
readonly
|
|
596
|
+
readonly CODE: 412;
|
|
597
|
+
readonly TEXT: "Precondition Failed";
|
|
578
598
|
};
|
|
579
599
|
readonly CONTENT_TOO_LARGE: {
|
|
580
|
-
readonly
|
|
581
|
-
readonly
|
|
600
|
+
readonly CODE: 413;
|
|
601
|
+
readonly TEXT: "Content Too Large";
|
|
582
602
|
};
|
|
583
603
|
readonly URI_TOO_LONG: {
|
|
584
|
-
readonly
|
|
585
|
-
readonly
|
|
604
|
+
readonly CODE: 414;
|
|
605
|
+
readonly TEXT: "URI Too Long";
|
|
586
606
|
};
|
|
587
607
|
readonly UNSUPPORTED_MEDIA_TYPE: {
|
|
588
|
-
readonly
|
|
589
|
-
readonly
|
|
608
|
+
readonly CODE: 415;
|
|
609
|
+
readonly TEXT: "Unsupported Media Type";
|
|
590
610
|
};
|
|
591
611
|
readonly RANGE_NOT_SATISFIABLE: {
|
|
592
|
-
readonly
|
|
593
|
-
readonly
|
|
612
|
+
readonly CODE: 416;
|
|
613
|
+
readonly TEXT: "Range Not Satisfiable";
|
|
594
614
|
};
|
|
595
615
|
readonly EXPECTATION_FAILED: {
|
|
596
|
-
readonly
|
|
597
|
-
readonly
|
|
616
|
+
readonly CODE: 417;
|
|
617
|
+
readonly TEXT: "Expectation Failed";
|
|
598
618
|
};
|
|
599
619
|
readonly IM_A_TEAPOT: {
|
|
600
|
-
readonly
|
|
601
|
-
readonly
|
|
620
|
+
readonly CODE: 418;
|
|
621
|
+
readonly TEXT: "I'm a teapot";
|
|
602
622
|
};
|
|
603
623
|
readonly MISDIRECTED_REQUEST: {
|
|
604
|
-
readonly
|
|
605
|
-
readonly
|
|
624
|
+
readonly CODE: 421;
|
|
625
|
+
readonly TEXT: "Misdirected Request";
|
|
606
626
|
};
|
|
607
627
|
readonly UNPROCESSABLE_CONTENT: {
|
|
608
|
-
readonly
|
|
609
|
-
readonly
|
|
628
|
+
readonly CODE: 422;
|
|
629
|
+
readonly TEXT: "Unprocessable Content";
|
|
610
630
|
};
|
|
611
631
|
readonly LOCKED: {
|
|
612
|
-
readonly
|
|
613
|
-
readonly
|
|
632
|
+
readonly CODE: 423;
|
|
633
|
+
readonly TEXT: "Locked";
|
|
614
634
|
};
|
|
615
635
|
readonly FAILED_DEPENDENCY: {
|
|
616
|
-
readonly
|
|
617
|
-
readonly
|
|
636
|
+
readonly CODE: 424;
|
|
637
|
+
readonly TEXT: "Failed Dependency";
|
|
618
638
|
};
|
|
619
639
|
readonly TOO_EARLY: {
|
|
620
|
-
readonly
|
|
621
|
-
readonly
|
|
640
|
+
readonly CODE: 425;
|
|
641
|
+
readonly TEXT: "Too Early";
|
|
622
642
|
};
|
|
623
643
|
readonly UPGRADE_REQUIRED: {
|
|
624
|
-
readonly
|
|
625
|
-
readonly
|
|
644
|
+
readonly CODE: 426;
|
|
645
|
+
readonly TEXT: "Upgrade Required";
|
|
626
646
|
};
|
|
627
647
|
readonly PRECONDITION_REQUIRED: {
|
|
628
|
-
readonly
|
|
629
|
-
readonly
|
|
648
|
+
readonly CODE: 428;
|
|
649
|
+
readonly TEXT: "Precondition Required";
|
|
630
650
|
};
|
|
631
651
|
readonly TOO_MANY_REQUESTS: {
|
|
632
|
-
readonly
|
|
633
|
-
readonly
|
|
652
|
+
readonly CODE: 429;
|
|
653
|
+
readonly TEXT: "Too Many Requests";
|
|
634
654
|
};
|
|
635
655
|
readonly REQUEST_HEADER_FIELDS_TOO_LARGE: {
|
|
636
|
-
readonly
|
|
637
|
-
readonly
|
|
656
|
+
readonly CODE: 431;
|
|
657
|
+
readonly TEXT: "Request Header Fields Too Large";
|
|
638
658
|
};
|
|
639
659
|
readonly UNAVAILABLE_FOR_LEGAL_REASONS: {
|
|
640
|
-
readonly
|
|
641
|
-
readonly
|
|
660
|
+
readonly CODE: 451;
|
|
661
|
+
readonly TEXT: "Unavailable For Legal Reasons";
|
|
642
662
|
};
|
|
643
663
|
};
|
|
644
664
|
type HttpClientErrorResponseStatus = ValueOf<typeof HTTP_CLIENT_ERROR_RESPONSE_STATUS_ENUM>;
|
|
645
|
-
export type HttpClientErrorResponseStatusCode = HttpClientErrorResponseStatus["
|
|
646
|
-
export type HttpClientErrorResponseStatusText = HttpClientErrorResponseStatus["
|
|
665
|
+
export type HttpClientErrorResponseStatusCode = HttpClientErrorResponseStatus["CODE"];
|
|
666
|
+
export type HttpClientErrorResponseStatusText = HttpClientErrorResponseStatus["TEXT"];
|
|
647
667
|
export declare const HTTP_SERVER_ERROR_RESPONSE_STATUS_ENUM: {
|
|
648
668
|
readonly INTERNAL_SERVER_ERROR: {
|
|
649
|
-
readonly
|
|
650
|
-
readonly
|
|
669
|
+
readonly CODE: 500;
|
|
670
|
+
readonly TEXT: "Internal Server Error";
|
|
651
671
|
};
|
|
652
672
|
readonly NOT_IMPLEMENTED: {
|
|
653
|
-
readonly
|
|
654
|
-
readonly
|
|
673
|
+
readonly CODE: 501;
|
|
674
|
+
readonly TEXT: "Not Implemented";
|
|
655
675
|
};
|
|
656
676
|
readonly BAD_GATEWAY: {
|
|
657
|
-
readonly
|
|
658
|
-
readonly
|
|
677
|
+
readonly CODE: 502;
|
|
678
|
+
readonly TEXT: "Bad Gateway";
|
|
659
679
|
};
|
|
660
680
|
readonly SERVICE_UNAVAILABLE: {
|
|
661
|
-
readonly
|
|
662
|
-
readonly
|
|
681
|
+
readonly CODE: 503;
|
|
682
|
+
readonly TEXT: "Service Unavailable";
|
|
663
683
|
};
|
|
664
684
|
readonly GATEWAY_TIMEOUT: {
|
|
665
|
-
readonly
|
|
666
|
-
readonly
|
|
685
|
+
readonly CODE: 504;
|
|
686
|
+
readonly TEXT: "Gateway Timeout";
|
|
667
687
|
};
|
|
668
688
|
readonly HTTP_VERSION_NOT_SUPPORTED: {
|
|
669
|
-
readonly
|
|
670
|
-
readonly
|
|
689
|
+
readonly CODE: 505;
|
|
690
|
+
readonly TEXT: "HTTP Version Not Supported";
|
|
671
691
|
};
|
|
672
692
|
readonly VARIANT_ALSO_NEGOTIATES: {
|
|
673
|
-
readonly
|
|
674
|
-
readonly
|
|
693
|
+
readonly CODE: 506;
|
|
694
|
+
readonly TEXT: "Variant Also Negotiates";
|
|
675
695
|
};
|
|
676
696
|
readonly INSUFFICIENT_STORAGE: {
|
|
677
|
-
readonly
|
|
678
|
-
readonly
|
|
697
|
+
readonly CODE: 507;
|
|
698
|
+
readonly TEXT: "Insufficient Storage";
|
|
679
699
|
};
|
|
680
700
|
readonly LOOP_DETECTED: {
|
|
681
|
-
readonly
|
|
682
|
-
readonly
|
|
701
|
+
readonly CODE: 508;
|
|
702
|
+
readonly TEXT: "Loop Detected";
|
|
683
703
|
};
|
|
684
704
|
readonly NOT_EXTENDED: {
|
|
685
|
-
readonly
|
|
686
|
-
readonly
|
|
705
|
+
readonly CODE: 510;
|
|
706
|
+
readonly TEXT: "Not Extended";
|
|
687
707
|
};
|
|
688
708
|
readonly NETWORK_AUTHENTICATION_REQUIRED: {
|
|
689
|
-
readonly
|
|
690
|
-
readonly
|
|
709
|
+
readonly CODE: 511;
|
|
710
|
+
readonly TEXT: "Network Authentication Required";
|
|
691
711
|
};
|
|
692
712
|
};
|
|
693
713
|
type HttpServerErrorResponseStatus = ValueOf<typeof HTTP_SERVER_ERROR_RESPONSE_STATUS_ENUM>;
|
|
694
|
-
export type HttpServerErrorResponseStatusCode = HttpServerErrorResponseStatus["
|
|
695
|
-
export type HttpServerErrorResponseStatusText = HttpServerErrorResponseStatus["
|
|
714
|
+
export type HttpServerErrorResponseStatusCode = HttpServerErrorResponseStatus["CODE"];
|
|
715
|
+
export type HttpServerErrorResponseStatusText = HttpServerErrorResponseStatus["TEXT"];
|
|
696
716
|
export {};
|