UNPKG

60.8 kBJavaScriptView Raw
1module.exports =
2/******/ (function(modules, runtime) { // webpackBootstrap
3/******/ "use strict";
4/******/ // The module cache
5/******/ var installedModules = {};
6/******/
7/******/ // The require function
8/******/ function __webpack_require__(moduleId) {
9/******/
10/******/ // Check if module is in cache
11/******/ if(installedModules[moduleId]) {
12/******/ return installedModules[moduleId].exports;
13/******/ }
14/******/ // Create a new module (and put it into the cache)
15/******/ var module = installedModules[moduleId] = {
16/******/ i: moduleId,
17/******/ l: false,
18/******/ exports: {}
19/******/ };
20/******/
21/******/ // Execute the module function
22/******/ var threw = true;
23/******/ try {
24/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
25/******/ threw = false;
26/******/ } finally {
27/******/ if(threw) delete installedModules[moduleId];
28/******/ }
29/******/
30/******/ // Flag the module as loaded
31/******/ module.l = true;
32/******/
33/******/ // Return the exports of the module
34/******/ return module.exports;
35/******/ }
36/******/
37/******/
38/******/ __webpack_require__.ab = __dirname + "/";
39/******/
40/******/ // the startup function
41/******/ function startup() {
42/******/ // Load entry module and return exports
43/******/ return __webpack_require__(527);
44/******/ };
45/******/ // initialize runtime
46/******/ runtime(__webpack_require__);
47/******/
48/******/ // run startup
49/******/ return startup();
50/******/ })
51/************************************************************************/
52/******/ ({
53
54/***/ 527:
55/***/ (function(__unusedmodule, __webpack_exports__, __webpack_require__) {
56
57"use strict";
58__webpack_require__.r(__webpack_exports__);
59
60// CONCATENATED MODULE: ./build-tmp/codes.js
61// Generated file. Do not edit
62var StatusCodes;
63(function (StatusCodes) {
64 /**
65 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.3.3
66 *
67 * The request has been received but not yet acted upon. It is non-committal, meaning that there is no way in HTTP to later send an asynchronous response indicating the outcome of processing the request. It is intended for cases where another process or server handles the request, or for batch processing.
68 */
69 StatusCodes[StatusCodes["ACCEPTED"] = 202] = "ACCEPTED";
70 /**
71 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.6.3
72 *
73 * 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.
74 */
75 StatusCodes[StatusCodes["BAD_GATEWAY"] = 502] = "BAD_GATEWAY";
76 /**
77 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.1
78 *
79 * This response means that server could not understand the request due to invalid syntax.
80 */
81 StatusCodes[StatusCodes["BAD_REQUEST"] = 400] = "BAD_REQUEST";
82 /**
83 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.8
84 *
85 * This response is sent when a request conflicts with the current state of the server.
86 */
87 StatusCodes[StatusCodes["CONFLICT"] = 409] = "CONFLICT";
88 /**
89 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.2.1
90 *
91 * This interim response indicates that everything so far is OK and that the client should continue with the request or ignore it if it is already finished.
92 */
93 StatusCodes[StatusCodes["CONTINUE"] = 100] = "CONTINUE";
94 /**
95 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.3.2
96 *
97 * The request has succeeded and a new resource has been created as a result of it. This is typically the response sent after a PUT request.
98 */
99 StatusCodes[StatusCodes["CREATED"] = 201] = "CREATED";
100 /**
101 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.14
102 *
103 * This response code means the expectation indicated by the Expect request header field can't be met by the server.
104 */
105 StatusCodes[StatusCodes["EXPECTATION_FAILED"] = 417] = "EXPECTATION_FAILED";
106 /**
107 * Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.5
108 *
109 * The request failed due to failure of a previous request.
110 */
111 StatusCodes[StatusCodes["FAILED_DEPENDENCY"] = 424] = "FAILED_DEPENDENCY";
112 /**
113 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.3
114 *
115 * The client does not have access rights to the content, i.e. they are unauthorized, so server is rejecting to give proper response. Unlike 401, the client's identity is known to the server.
116 */
117 StatusCodes[StatusCodes["FORBIDDEN"] = 403] = "FORBIDDEN";
118 /**
119 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.6.5
120 *
121 * This error response is given when the server is acting as a gateway and cannot get a response in time.
122 */
123 StatusCodes[StatusCodes["GATEWAY_TIMEOUT"] = 504] = "GATEWAY_TIMEOUT";
124 /**
125 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.9
126 *
127 * This response would be sent when the requested content has been permenantly 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.
128 */
129 StatusCodes[StatusCodes["GONE"] = 410] = "GONE";
130 /**
131 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.6.6
132 *
133 * The HTTP version used in the request is not supported by the server.
134 */
135 StatusCodes[StatusCodes["HTTP_VERSION_NOT_SUPPORTED"] = 505] = "HTTP_VERSION_NOT_SUPPORTED";
136 /**
137 * Official Documentation @ https://tools.ietf.org/html/rfc2324#section-2.3.2
138 *
139 * Any attempt to brew coffee with a teapot should result in the error code "418 I'm a teapot". The resulting entity body MAY be short and stout.
140 */
141 StatusCodes[StatusCodes["IM_A_TEAPOT"] = 418] = "IM_A_TEAPOT";
142 /**
143 * Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.6
144 *
145 * The 507 (Insufficient Storage) status code means the method could not be performed on the resource because the server is unable to store the representation needed to successfully complete the request. This condition is considered to be temporary. If the request which received this status code was the result of a user action, the request MUST NOT be repeated until it is requested by a separate user action.
146 */
147 StatusCodes[StatusCodes["INSUFFICIENT_SPACE_ON_RESOURCE"] = 419] = "INSUFFICIENT_SPACE_ON_RESOURCE";
148 /**
149 * Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.6
150 *
151 * The server has an internal configuration error: the chosen variant resource is configured to engage in transparent content negotiation itself, and is therefore not a proper end point in the negotiation process.
152 */
153 StatusCodes[StatusCodes["INSUFFICIENT_STORAGE"] = 507] = "INSUFFICIENT_STORAGE";
154 /**
155 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.6.1
156 *
157 * The server encountered an unexpected condition that prevented it from fulfilling the request.
158 */
159 StatusCodes[StatusCodes["INTERNAL_SERVER_ERROR"] = 500] = "INTERNAL_SERVER_ERROR";
160 /**
161 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.10
162 *
163 * The server rejected the request because the Content-Length header field is not defined and the server requires it.
164 */
165 StatusCodes[StatusCodes["LENGTH_REQUIRED"] = 411] = "LENGTH_REQUIRED";
166 /**
167 * Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.4
168 *
169 * The resource that is being accessed is locked.
170 */
171 StatusCodes[StatusCodes["LOCKED"] = 423] = "LOCKED";
172 /**
173 * @deprecated
174 * Official Documentation @ https://tools.ietf.org/rfcdiff?difftype=--hwdiff&url2=draft-ietf-webdav-protocol-06.txt
175 *
176 * A deprecated response used by the Spring Framework when a method has failed.
177 */
178 StatusCodes[StatusCodes["METHOD_FAILURE"] = 420] = "METHOD_FAILURE";
179 /**
180 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.5
181 *
182 * The request method is known by the server but has been disabled and cannot be used. For example, an API may forbid DELETE-ing a resource. The two mandatory methods, GET and HEAD, must never be disabled and should not return this error code.
183 */
184 StatusCodes[StatusCodes["METHOD_NOT_ALLOWED"] = 405] = "METHOD_NOT_ALLOWED";
185 /**
186 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.4.2
187 *
188 * This response code means that URI of requested resource has been changed. Probably, new URI would be given in the response.
189 */
190 StatusCodes[StatusCodes["MOVED_PERMANENTLY"] = 301] = "MOVED_PERMANENTLY";
191 /**
192 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.4.3
193 *
194 * This response code means that URI of requested resource has been changed temporarily. New changes in the URI might be made in the future. Therefore, this same URI should be used by the client in future requests.
195 */
196 StatusCodes[StatusCodes["MOVED_TEMPORARILY"] = 302] = "MOVED_TEMPORARILY";
197 /**
198 * Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.2
199 *
200 * A Multi-Status response conveys information about multiple resources in situations where multiple status codes might be appropriate.
201 */
202 StatusCodes[StatusCodes["MULTI_STATUS"] = 207] = "MULTI_STATUS";
203 /**
204 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.4.1
205 *
206 * The request has more than one possible responses. User-agent or user should choose one of them. There is no standardized way to choose one of the responses.
207 */
208 StatusCodes[StatusCodes["MULTIPLE_CHOICES"] = 300] = "MULTIPLE_CHOICES";
209 /**
210 * Official Documentation @ https://tools.ietf.org/html/rfc6585#section-6
211 *
212 * The 511 status code indicates that the client needs to authenticate to gain network access.
213 */
214 StatusCodes[StatusCodes["NETWORK_AUTHENTICATION_REQUIRED"] = 511] = "NETWORK_AUTHENTICATION_REQUIRED";
215 /**
216 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.3.5
217 *
218 * There is no content to send for this request, but the headers may be useful. The user-agent may update its cached headers for this resource with the new ones.
219 */
220 StatusCodes[StatusCodes["NO_CONTENT"] = 204] = "NO_CONTENT";
221 /**
222 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.3.4
223 *
224 * This response code means returned meta-information set is not exact set as available from the origin server, but collected from a local or a third party copy. Except this condition, 200 OK response should be preferred instead of this response.
225 */
226 StatusCodes[StatusCodes["NON_AUTHORITATIVE_INFORMATION"] = 203] = "NON_AUTHORITATIVE_INFORMATION";
227 /**
228 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.6
229 *
230 * This response is sent when the web server, after performing server-driven content negotiation, doesn't find any content following the criteria given by the user agent.
231 */
232 StatusCodes[StatusCodes["NOT_ACCEPTABLE"] = 406] = "NOT_ACCEPTABLE";
233 /**
234 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.4
235 *
236 * The server can not find 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 to hide the existence of a resource from an unauthorized client. This response code is probably the most famous one due to its frequent occurence on the web.
237 */
238 StatusCodes[StatusCodes["NOT_FOUND"] = 404] = "NOT_FOUND";
239 /**
240 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.6.2
241 *
242 * 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.
243 */
244 StatusCodes[StatusCodes["NOT_IMPLEMENTED"] = 501] = "NOT_IMPLEMENTED";
245 /**
246 * Official Documentation @ https://tools.ietf.org/html/rfc7232#section-4.1
247 *
248 * This is used for caching purposes. It is telling to client that response has not been modified. So, client can continue to use same cached version of response.
249 */
250 StatusCodes[StatusCodes["NOT_MODIFIED"] = 304] = "NOT_MODIFIED";
251 /**
252 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.3.1
253 *
254 * The request has succeeded. The meaning of a success varies depending on the HTTP method:
255 * GET: The resource has been fetched and is transmitted in the message body.
256 * HEAD: The entity headers are in the message body.
257 * POST: The resource describing the result of the action is transmitted in the message body.
258 * TRACE: The message body contains the request message as received by the server
259 */
260 StatusCodes[StatusCodes["OK"] = 200] = "OK";
261 /**
262 * Official Documentation @ https://tools.ietf.org/html/rfc7233#section-4.1
263 *
264 * This response code is used because of range header sent by the client to separate download into multiple streams.
265 */
266 StatusCodes[StatusCodes["PARTIAL_CONTENT"] = 206] = "PARTIAL_CONTENT";
267 /**
268 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.2
269 *
270 * This response code is reserved for future use. Initial aim for creating this code was using it for digital payment systems however this is not used currently.
271 */
272 StatusCodes[StatusCodes["PAYMENT_REQUIRED"] = 402] = "PAYMENT_REQUIRED";
273 /**
274 * Official Documentation @ https://tools.ietf.org/html/rfc7538#section-3
275 *
276 * This means that the resource is now permanently located at another URI, specified by the Location: HTTP 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.
277 */
278 StatusCodes[StatusCodes["PERMANENT_REDIRECT"] = 308] = "PERMANENT_REDIRECT";
279 /**
280 * Official Documentation @ https://tools.ietf.org/html/rfc7232#section-4.2
281 *
282 * The client has indicated preconditions in its headers which the server does not meet.
283 */
284 StatusCodes[StatusCodes["PRECONDITION_FAILED"] = 412] = "PRECONDITION_FAILED";
285 /**
286 * Official Documentation @ https://tools.ietf.org/html/rfc6585#section-3
287 *
288 * The origin server requires the request to be conditional. 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.
289 */
290 StatusCodes[StatusCodes["PRECONDITION_REQUIRED"] = 428] = "PRECONDITION_REQUIRED";
291 /**
292 * Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.1
293 *
294 * This code indicates that the server has received and is processing the request, but no response is available yet.
295 */
296 StatusCodes[StatusCodes["PROCESSING"] = 102] = "PROCESSING";
297 /**
298 * Official Documentation @ https://tools.ietf.org/html/rfc7235#section-3.2
299 *
300 * This is similar to 401 but authentication is needed to be done by a proxy.
301 */
302 StatusCodes[StatusCodes["PROXY_AUTHENTICATION_REQUIRED"] = 407] = "PROXY_AUTHENTICATION_REQUIRED";
303 /**
304 * Official Documentation @ https://tools.ietf.org/html/rfc6585#section-5
305 *
306 * 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.
307 */
308 StatusCodes[StatusCodes["REQUEST_HEADER_FIELDS_TOO_LARGE"] = 431] = "REQUEST_HEADER_FIELDS_TOO_LARGE";
309 /**
310 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.7
311 *
312 * 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, like Chrome, Firefox 27+, or IE9, use HTTP pre-connection mechanisms to speed up surfing. Also note that some servers merely shut down the connection without sending this message.
313 */
314 StatusCodes[StatusCodes["REQUEST_TIMEOUT"] = 408] = "REQUEST_TIMEOUT";
315 /**
316 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.11
317 *
318 * Request entity is larger than limits defined by server; the server might close the connection or return an Retry-After header field.
319 */
320 StatusCodes[StatusCodes["REQUEST_TOO_LONG"] = 413] = "REQUEST_TOO_LONG";
321 /**
322 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.12
323 *
324 * The URI requested by the client is longer than the server is willing to interpret.
325 */
326 StatusCodes[StatusCodes["REQUEST_URI_TOO_LONG"] = 414] = "REQUEST_URI_TOO_LONG";
327 /**
328 * Official Documentation @ https://tools.ietf.org/html/rfc7233#section-4.4
329 *
330 * The range specified by the Range header field in the request can't be fulfilled; it's possible that the range is outside the size of the target URI's data.
331 */
332 StatusCodes[StatusCodes["REQUESTED_RANGE_NOT_SATISFIABLE"] = 416] = "REQUESTED_RANGE_NOT_SATISFIABLE";
333 /**
334 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.3.6
335 *
336 * This response code is sent after accomplishing request to tell user agent reset document view which sent this request.
337 */
338 StatusCodes[StatusCodes["RESET_CONTENT"] = 205] = "RESET_CONTENT";
339 /**
340 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.4.4
341 *
342 * Server sent this response to directing client to get requested resource to another URI with an GET request.
343 */
344 StatusCodes[StatusCodes["SEE_OTHER"] = 303] = "SEE_OTHER";
345 /**
346 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.6.4
347 *
348 * 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 responses 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.
349 */
350 StatusCodes[StatusCodes["SERVICE_UNAVAILABLE"] = 503] = "SERVICE_UNAVAILABLE";
351 /**
352 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.2.2
353 *
354 * This code is sent in response to an Upgrade request header by the client, and indicates the protocol the server is switching too.
355 */
356 StatusCodes[StatusCodes["SWITCHING_PROTOCOLS"] = 101] = "SWITCHING_PROTOCOLS";
357 /**
358 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.4.7
359 *
360 * Server sent this response to directing client to get requested resource to another URI with same method that used prior request. This has the same semantic than the 302 Found 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.
361 */
362 StatusCodes[StatusCodes["TEMPORARY_REDIRECT"] = 307] = "TEMPORARY_REDIRECT";
363 /**
364 * Official Documentation @ https://tools.ietf.org/html/rfc6585#section-4
365 *
366 * The user has sent too many requests in a given amount of time ("rate limiting").
367 */
368 StatusCodes[StatusCodes["TOO_MANY_REQUESTS"] = 429] = "TOO_MANY_REQUESTS";
369 /**
370 * Official Documentation @ https://tools.ietf.org/html/rfc7235#section-3.1
371 *
372 * Although the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated". That is, the client must authenticate itself to get the requested response.
373 */
374 StatusCodes[StatusCodes["UNAUTHORIZED"] = 401] = "UNAUTHORIZED";
375 /**
376 * Official Documentation @ https://tools.ietf.org/html/rfc7725
377 *
378 * The user-agent requested a resource that cannot legally be provided, such as a web page censored by a government.
379 */
380 StatusCodes[StatusCodes["UNAVAILABLE_FOR_LEGAL_REASONS"] = 451] = "UNAVAILABLE_FOR_LEGAL_REASONS";
381 /**
382 * Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.3
383 *
384 * The request was well-formed but was unable to be followed due to semantic errors.
385 */
386 StatusCodes[StatusCodes["UNPROCESSABLE_ENTITY"] = 422] = "UNPROCESSABLE_ENTITY";
387 /**
388 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.13
389 *
390 * The media format of the requested data is not supported by the server, so the server is rejecting the request.
391 */
392 StatusCodes[StatusCodes["UNSUPPORTED_MEDIA_TYPE"] = 415] = "UNSUPPORTED_MEDIA_TYPE";
393 /**
394 * @deprecated
395 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.4.6
396 *
397 * Was 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.
398 */
399 StatusCodes[StatusCodes["USE_PROXY"] = 305] = "USE_PROXY";
400})(StatusCodes || (StatusCodes = {}));
401var ReasonPhrases;
402(function (ReasonPhrases) {
403 /**
404 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.3.3
405 *
406 * The request has been received but not yet acted upon. It is non-committal, meaning that there is no way in HTTP to later send an asynchronous response indicating the outcome of processing the request. It is intended for cases where another process or server handles the request, or for batch processing.
407 */
408 ReasonPhrases["ACCEPTED"] = "Accepted";
409 /**
410 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.6.3
411 *
412 * 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.
413 */
414 ReasonPhrases["BAD_GATEWAY"] = "Bad Gateway";
415 /**
416 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.1
417 *
418 * This response means that server could not understand the request due to invalid syntax.
419 */
420 ReasonPhrases["BAD_REQUEST"] = "Bad Request";
421 /**
422 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.8
423 *
424 * This response is sent when a request conflicts with the current state of the server.
425 */
426 ReasonPhrases["CONFLICT"] = "Conflict";
427 /**
428 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.2.1
429 *
430 * This interim response indicates that everything so far is OK and that the client should continue with the request or ignore it if it is already finished.
431 */
432 ReasonPhrases["CONTINUE"] = "Continue";
433 /**
434 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.3.2
435 *
436 * The request has succeeded and a new resource has been created as a result of it. This is typically the response sent after a PUT request.
437 */
438 ReasonPhrases["CREATED"] = "Created";
439 /**
440 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.14
441 *
442 * This response code means the expectation indicated by the Expect request header field can't be met by the server.
443 */
444 ReasonPhrases["EXPECTATION_FAILED"] = "Expectation Failed";
445 /**
446 * Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.5
447 *
448 * The request failed due to failure of a previous request.
449 */
450 ReasonPhrases["FAILED_DEPENDENCY"] = "Failed Dependency";
451 /**
452 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.3
453 *
454 * The client does not have access rights to the content, i.e. they are unauthorized, so server is rejecting to give proper response. Unlike 401, the client's identity is known to the server.
455 */
456 ReasonPhrases["FORBIDDEN"] = "Forbidden";
457 /**
458 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.6.5
459 *
460 * This error response is given when the server is acting as a gateway and cannot get a response in time.
461 */
462 ReasonPhrases["GATEWAY_TIMEOUT"] = "Gateway Timeout";
463 /**
464 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.9
465 *
466 * This response would be sent when the requested content has been permenantly 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.
467 */
468 ReasonPhrases["GONE"] = "Gone";
469 /**
470 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.6.6
471 *
472 * The HTTP version used in the request is not supported by the server.
473 */
474 ReasonPhrases["HTTP_VERSION_NOT_SUPPORTED"] = "HTTP Version Not Supported";
475 /**
476 * Official Documentation @ https://tools.ietf.org/html/rfc2324#section-2.3.2
477 *
478 * Any attempt to brew coffee with a teapot should result in the error code "418 I'm a teapot". The resulting entity body MAY be short and stout.
479 */
480 ReasonPhrases["IM_A_TEAPOT"] = "I'm a teapot";
481 /**
482 * Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.6
483 *
484 * The 507 (Insufficient Storage) status code means the method could not be performed on the resource because the server is unable to store the representation needed to successfully complete the request. This condition is considered to be temporary. If the request which received this status code was the result of a user action, the request MUST NOT be repeated until it is requested by a separate user action.
485 */
486 ReasonPhrases["INSUFFICIENT_SPACE_ON_RESOURCE"] = "Insufficient Space on Resource";
487 /**
488 * Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.6
489 *
490 * The server has an internal configuration error: the chosen variant resource is configured to engage in transparent content negotiation itself, and is therefore not a proper end point in the negotiation process.
491 */
492 ReasonPhrases["INSUFFICIENT_STORAGE"] = "Insufficient Storage";
493 /**
494 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.6.1
495 *
496 * The server encountered an unexpected condition that prevented it from fulfilling the request.
497 */
498 ReasonPhrases["INTERNAL_SERVER_ERROR"] = "Internal Server Error";
499 /**
500 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.10
501 *
502 * The server rejected the request because the Content-Length header field is not defined and the server requires it.
503 */
504 ReasonPhrases["LENGTH_REQUIRED"] = "Length Required";
505 /**
506 * Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.4
507 *
508 * The resource that is being accessed is locked.
509 */
510 ReasonPhrases["LOCKED"] = "Locked";
511 /**
512 * @deprecated
513 * Official Documentation @ https://tools.ietf.org/rfcdiff?difftype=--hwdiff&url2=draft-ietf-webdav-protocol-06.txt
514 *
515 * A deprecated response used by the Spring Framework when a method has failed.
516 */
517 ReasonPhrases["METHOD_FAILURE"] = "Method Failure";
518 /**
519 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.5
520 *
521 * The request method is known by the server but has been disabled and cannot be used. For example, an API may forbid DELETE-ing a resource. The two mandatory methods, GET and HEAD, must never be disabled and should not return this error code.
522 */
523 ReasonPhrases["METHOD_NOT_ALLOWED"] = "Method Not Allowed";
524 /**
525 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.4.2
526 *
527 * This response code means that URI of requested resource has been changed. Probably, new URI would be given in the response.
528 */
529 ReasonPhrases["MOVED_PERMANENTLY"] = "Moved Permanently";
530 /**
531 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.4.3
532 *
533 * This response code means that URI of requested resource has been changed temporarily. New changes in the URI might be made in the future. Therefore, this same URI should be used by the client in future requests.
534 */
535 ReasonPhrases["MOVED_TEMPORARILY"] = "Moved Temporarily";
536 /**
537 * Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.2
538 *
539 * A Multi-Status response conveys information about multiple resources in situations where multiple status codes might be appropriate.
540 */
541 ReasonPhrases["MULTI_STATUS"] = "Multi-Status";
542 /**
543 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.4.1
544 *
545 * The request has more than one possible responses. User-agent or user should choose one of them. There is no standardized way to choose one of the responses.
546 */
547 ReasonPhrases["MULTIPLE_CHOICES"] = "Multiple Choices";
548 /**
549 * Official Documentation @ https://tools.ietf.org/html/rfc6585#section-6
550 *
551 * The 511 status code indicates that the client needs to authenticate to gain network access.
552 */
553 ReasonPhrases["NETWORK_AUTHENTICATION_REQUIRED"] = "Network Authentication Required";
554 /**
555 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.3.5
556 *
557 * There is no content to send for this request, but the headers may be useful. The user-agent may update its cached headers for this resource with the new ones.
558 */
559 ReasonPhrases["NO_CONTENT"] = "No Content";
560 /**
561 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.3.4
562 *
563 * This response code means returned meta-information set is not exact set as available from the origin server, but collected from a local or a third party copy. Except this condition, 200 OK response should be preferred instead of this response.
564 */
565 ReasonPhrases["NON_AUTHORITATIVE_INFORMATION"] = "Non Authoritative Information";
566 /**
567 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.6
568 *
569 * This response is sent when the web server, after performing server-driven content negotiation, doesn't find any content following the criteria given by the user agent.
570 */
571 ReasonPhrases["NOT_ACCEPTABLE"] = "Not Acceptable";
572 /**
573 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.4
574 *
575 * The server can not find 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 to hide the existence of a resource from an unauthorized client. This response code is probably the most famous one due to its frequent occurence on the web.
576 */
577 ReasonPhrases["NOT_FOUND"] = "Not Found";
578 /**
579 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.6.2
580 *
581 * 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.
582 */
583 ReasonPhrases["NOT_IMPLEMENTED"] = "Not Implemented";
584 /**
585 * Official Documentation @ https://tools.ietf.org/html/rfc7232#section-4.1
586 *
587 * This is used for caching purposes. It is telling to client that response has not been modified. So, client can continue to use same cached version of response.
588 */
589 ReasonPhrases["NOT_MODIFIED"] = "Not Modified";
590 /**
591 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.3.1
592 *
593 * The request has succeeded. The meaning of a success varies depending on the HTTP method:
594 * GET: The resource has been fetched and is transmitted in the message body.
595 * HEAD: The entity headers are in the message body.
596 * POST: The resource describing the result of the action is transmitted in the message body.
597 * TRACE: The message body contains the request message as received by the server
598 */
599 ReasonPhrases["OK"] = "OK";
600 /**
601 * Official Documentation @ https://tools.ietf.org/html/rfc7233#section-4.1
602 *
603 * This response code is used because of range header sent by the client to separate download into multiple streams.
604 */
605 ReasonPhrases["PARTIAL_CONTENT"] = "Partial Content";
606 /**
607 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.2
608 *
609 * This response code is reserved for future use. Initial aim for creating this code was using it for digital payment systems however this is not used currently.
610 */
611 ReasonPhrases["PAYMENT_REQUIRED"] = "Payment Required";
612 /**
613 * Official Documentation @ https://tools.ietf.org/html/rfc7538#section-3
614 *
615 * This means that the resource is now permanently located at another URI, specified by the Location: HTTP 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.
616 */
617 ReasonPhrases["PERMANENT_REDIRECT"] = "Permanent Redirect";
618 /**
619 * Official Documentation @ https://tools.ietf.org/html/rfc7232#section-4.2
620 *
621 * The client has indicated preconditions in its headers which the server does not meet.
622 */
623 ReasonPhrases["PRECONDITION_FAILED"] = "Precondition Failed";
624 /**
625 * Official Documentation @ https://tools.ietf.org/html/rfc6585#section-3
626 *
627 * The origin server requires the request to be conditional. 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.
628 */
629 ReasonPhrases["PRECONDITION_REQUIRED"] = "Precondition Required";
630 /**
631 * Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.1
632 *
633 * This code indicates that the server has received and is processing the request, but no response is available yet.
634 */
635 ReasonPhrases["PROCESSING"] = "Processing";
636 /**
637 * Official Documentation @ https://tools.ietf.org/html/rfc7235#section-3.2
638 *
639 * This is similar to 401 but authentication is needed to be done by a proxy.
640 */
641 ReasonPhrases["PROXY_AUTHENTICATION_REQUIRED"] = "Proxy Authentication Required";
642 /**
643 * Official Documentation @ https://tools.ietf.org/html/rfc6585#section-5
644 *
645 * 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.
646 */
647 ReasonPhrases["REQUEST_HEADER_FIELDS_TOO_LARGE"] = "Request Header Fields Too Large";
648 /**
649 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.7
650 *
651 * 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, like Chrome, Firefox 27+, or IE9, use HTTP pre-connection mechanisms to speed up surfing. Also note that some servers merely shut down the connection without sending this message.
652 */
653 ReasonPhrases["REQUEST_TIMEOUT"] = "Request Timeout";
654 /**
655 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.11
656 *
657 * Request entity is larger than limits defined by server; the server might close the connection or return an Retry-After header field.
658 */
659 ReasonPhrases["REQUEST_TOO_LONG"] = "Request Entity Too Large";
660 /**
661 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.12
662 *
663 * The URI requested by the client is longer than the server is willing to interpret.
664 */
665 ReasonPhrases["REQUEST_URI_TOO_LONG"] = "Request-URI Too Long";
666 /**
667 * Official Documentation @ https://tools.ietf.org/html/rfc7233#section-4.4
668 *
669 * The range specified by the Range header field in the request can't be fulfilled; it's possible that the range is outside the size of the target URI's data.
670 */
671 ReasonPhrases["REQUESTED_RANGE_NOT_SATISFIABLE"] = "Requested Range Not Satisfiable";
672 /**
673 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.3.6
674 *
675 * This response code is sent after accomplishing request to tell user agent reset document view which sent this request.
676 */
677 ReasonPhrases["RESET_CONTENT"] = "Reset Content";
678 /**
679 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.4.4
680 *
681 * Server sent this response to directing client to get requested resource to another URI with an GET request.
682 */
683 ReasonPhrases["SEE_OTHER"] = "See Other";
684 /**
685 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.6.4
686 *
687 * 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 responses 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.
688 */
689 ReasonPhrases["SERVICE_UNAVAILABLE"] = "Service Unavailable";
690 /**
691 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.2.2
692 *
693 * This code is sent in response to an Upgrade request header by the client, and indicates the protocol the server is switching too.
694 */
695 ReasonPhrases["SWITCHING_PROTOCOLS"] = "Switching Protocols";
696 /**
697 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.4.7
698 *
699 * Server sent this response to directing client to get requested resource to another URI with same method that used prior request. This has the same semantic than the 302 Found 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.
700 */
701 ReasonPhrases["TEMPORARY_REDIRECT"] = "Temporary Redirect";
702 /**
703 * Official Documentation @ https://tools.ietf.org/html/rfc6585#section-4
704 *
705 * The user has sent too many requests in a given amount of time ("rate limiting").
706 */
707 ReasonPhrases["TOO_MANY_REQUESTS"] = "Too Many Requests";
708 /**
709 * Official Documentation @ https://tools.ietf.org/html/rfc7235#section-3.1
710 *
711 * Although the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated". That is, the client must authenticate itself to get the requested response.
712 */
713 ReasonPhrases["UNAUTHORIZED"] = "Unauthorized";
714 /**
715 * Official Documentation @ https://tools.ietf.org/html/rfc7725
716 *
717 * The user-agent requested a resource that cannot legally be provided, such as a web page censored by a government.
718 */
719 ReasonPhrases["UNAVAILABLE_FOR_LEGAL_REASONS"] = "Unavailable For Legal Reasons";
720 /**
721 * Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.3
722 *
723 * The request was well-formed but was unable to be followed due to semantic errors.
724 */
725 ReasonPhrases["UNPROCESSABLE_ENTITY"] = "Unprocessable Entity";
726 /**
727 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.13
728 *
729 * The media format of the requested data is not supported by the server, so the server is rejecting the request.
730 */
731 ReasonPhrases["UNSUPPORTED_MEDIA_TYPE"] = "Unsupported Media Type";
732 /**
733 * @deprecated
734 * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.4.6
735 *
736 * Was 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.
737 */
738 ReasonPhrases["USE_PROXY"] = "Use Proxy";
739})(ReasonPhrases || (ReasonPhrases = {}));
740var statusCodeToReasonPhrase = {
741 "202": "Accepted",
742 "502": "Bad Gateway",
743 "400": "Bad Request",
744 "409": "Conflict",
745 "100": "Continue",
746 "201": "Created",
747 "417": "Expectation Failed",
748 "424": "Failed Dependency",
749 "403": "Forbidden",
750 "504": "Gateway Timeout",
751 "410": "Gone",
752 "505": "HTTP Version Not Supported",
753 "418": "I'm a teapot",
754 "419": "Insufficient Space on Resource",
755 "507": "Insufficient Storage",
756 "500": "Internal Server Error",
757 "411": "Length Required",
758 "423": "Locked",
759 "420": "Method Failure",
760 "405": "Method Not Allowed",
761 "301": "Moved Permanently",
762 "302": "Moved Temporarily",
763 "207": "Multi-Status",
764 "300": "Multiple Choices",
765 "511": "Network Authentication Required",
766 "204": "No Content",
767 "203": "Non Authoritative Information",
768 "406": "Not Acceptable",
769 "404": "Not Found",
770 "501": "Not Implemented",
771 "304": "Not Modified",
772 "200": "OK",
773 "206": "Partial Content",
774 "402": "Payment Required",
775 "308": "Permanent Redirect",
776 "412": "Precondition Failed",
777 "428": "Precondition Required",
778 "102": "Processing",
779 "407": "Proxy Authentication Required",
780 "431": "Request Header Fields Too Large",
781 "408": "Request Timeout",
782 "413": "Request Entity Too Large",
783 "414": "Request-URI Too Long",
784 "416": "Requested Range Not Satisfiable",
785 "205": "Reset Content",
786 "303": "See Other",
787 "503": "Service Unavailable",
788 "101": "Switching Protocols",
789 "307": "Temporary Redirect",
790 "429": "Too Many Requests",
791 "401": "Unauthorized",
792 "451": "Unavailable For Legal Reasons",
793 "422": "Unprocessable Entity",
794 "415": "Unsupported Media Type",
795 "305": "Use Proxy"
796};
797var reasonPhraseToStatusCode = {
798 "Accepted": 202,
799 "Bad Gateway": 502,
800 "Bad Request": 400,
801 "Conflict": 409,
802 "Continue": 100,
803 "Created": 201,
804 "Expectation Failed": 417,
805 "Failed Dependency": 424,
806 "Forbidden": 403,
807 "Gateway Timeout": 504,
808 "Gone": 410,
809 "HTTP Version Not Supported": 505,
810 "I'm a teapot": 418,
811 "Insufficient Space on Resource": 419,
812 "Insufficient Storage": 507,
813 "Internal Server Error": 500,
814 "Length Required": 411,
815 "Locked": 423,
816 "Method Failure": 420,
817 "Method Not Allowed": 405,
818 "Moved Permanently": 301,
819 "Moved Temporarily": 302,
820 "Multi-Status": 207,
821 "Multiple Choices": 300,
822 "Network Authentication Required": 511,
823 "No Content": 204,
824 "Non Authoritative Information": 203,
825 "Not Acceptable": 406,
826 "Not Found": 404,
827 "Not Implemented": 501,
828 "Not Modified": 304,
829 "OK": 200,
830 "Partial Content": 206,
831 "Payment Required": 402,
832 "Permanent Redirect": 308,
833 "Precondition Failed": 412,
834 "Precondition Required": 428,
835 "Processing": 102,
836 "Proxy Authentication Required": 407,
837 "Request Header Fields Too Large": 431,
838 "Request Timeout": 408,
839 "Request Entity Too Large": 413,
840 "Request-URI Too Long": 414,
841 "Requested Range Not Satisfiable": 416,
842 "Reset Content": 205,
843 "See Other": 303,
844 "Service Unavailable": 503,
845 "Switching Protocols": 101,
846 "Temporary Redirect": 307,
847 "Too Many Requests": 429,
848 "Unauthorized": 401,
849 "Unavailable For Legal Reasons": 451,
850 "Unprocessable Entity": 422,
851 "Unsupported Media Type": 415,
852 "Use Proxy": 305
853};
854
855// CONCATENATED MODULE: ./build-tmp/index.js
856/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getReasonPhrase", function() { return getReasonPhrase; });
857/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStatusCode", function() { return getStatusCode; });
858/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStatusText", function() { return getStatusText; });
859/* concated harmony reexport */ __webpack_require__.d(__webpack_exports__, "StatusCodes", function() { return StatusCodes; });
860/* concated harmony reexport */ __webpack_require__.d(__webpack_exports__, "ReasonPhrases", function() { return ReasonPhrases; });
861/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ACCEPTED", function() { return ACCEPTED; });
862/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BAD_GATEWAY", function() { return BAD_GATEWAY; });
863/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BAD_REQUEST", function() { return BAD_REQUEST; });
864/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CONFLICT", function() { return CONFLICT; });
865/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CONTINUE", function() { return CONTINUE; });
866/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CREATED", function() { return CREATED; });
867/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EXPECTATION_FAILED", function() { return EXPECTATION_FAILED; });
868/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FAILED_DEPENDENCY", function() { return FAILED_DEPENDENCY; });
869/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FORBIDDEN", function() { return FORBIDDEN; });
870/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GATEWAY_TIMEOUT", function() { return GATEWAY_TIMEOUT; });
871/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GONE", function() { return GONE; });
872/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HTTP_VERSION_NOT_SUPPORTED", function() { return HTTP_VERSION_NOT_SUPPORTED; });
873/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IM_A_TEAPOT", function() { return IM_A_TEAPOT; });
874/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "INSUFFICIENT_SPACE_ON_RESOURCE", function() { return INSUFFICIENT_SPACE_ON_RESOURCE; });
875/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "INSUFFICIENT_STORAGE", function() { return INSUFFICIENT_STORAGE; });
876/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "INTERNAL_SERVER_ERROR", function() { return INTERNAL_SERVER_ERROR; });
877/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LENGTH_REQUIRED", function() { return LENGTH_REQUIRED; });
878/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LOCKED", function() { return LOCKED; });
879/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "METHOD_FAILURE", function() { return METHOD_FAILURE; });
880/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "METHOD_NOT_ALLOWED", function() { return METHOD_NOT_ALLOWED; });
881/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MOVED_PERMANENTLY", function() { return MOVED_PERMANENTLY; });
882/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MOVED_TEMPORARILY", function() { return MOVED_TEMPORARILY; });
883/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MULTI_STATUS", function() { return MULTI_STATUS; });
884/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MULTIPLE_CHOICES", function() { return MULTIPLE_CHOICES; });
885/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NETWORK_AUTHENTICATION_REQUIRED", function() { return NETWORK_AUTHENTICATION_REQUIRED; });
886/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NO_CONTENT", function() { return NO_CONTENT; });
887/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NON_AUTHORITATIVE_INFORMATION", function() { return NON_AUTHORITATIVE_INFORMATION; });
888/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NOT_ACCEPTABLE", function() { return NOT_ACCEPTABLE; });
889/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NOT_FOUND", function() { return NOT_FOUND; });
890/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NOT_IMPLEMENTED", function() { return NOT_IMPLEMENTED; });
891/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NOT_MODIFIED", function() { return NOT_MODIFIED; });
892/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OK", function() { return OK; });
893/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PARTIAL_CONTENT", function() { return PARTIAL_CONTENT; });
894/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PAYMENT_REQUIRED", function() { return PAYMENT_REQUIRED; });
895/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PERMANENT_REDIRECT", function() { return PERMANENT_REDIRECT; });
896/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PRECONDITION_FAILED", function() { return PRECONDITION_FAILED; });
897/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PRECONDITION_REQUIRED", function() { return PRECONDITION_REQUIRED; });
898/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PROCESSING", function() { return PROCESSING; });
899/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PROXY_AUTHENTICATION_REQUIRED", function() { return PROXY_AUTHENTICATION_REQUIRED; });
900/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "REQUEST_HEADER_FIELDS_TOO_LARGE", function() { return REQUEST_HEADER_FIELDS_TOO_LARGE; });
901/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "REQUEST_TIMEOUT", function() { return REQUEST_TIMEOUT; });
902/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "REQUEST_TOO_LONG", function() { return REQUEST_TOO_LONG; });
903/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "REQUEST_URI_TOO_LONG", function() { return REQUEST_URI_TOO_LONG; });
904/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "REQUESTED_RANGE_NOT_SATISFIABLE", function() { return REQUESTED_RANGE_NOT_SATISFIABLE; });
905/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RESET_CONTENT", function() { return RESET_CONTENT; });
906/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SEE_OTHER", function() { return SEE_OTHER; });
907/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SERVICE_UNAVAILABLE", function() { return SERVICE_UNAVAILABLE; });
908/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SWITCHING_PROTOCOLS", function() { return SWITCHING_PROTOCOLS; });
909/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TEMPORARY_REDIRECT", function() { return TEMPORARY_REDIRECT; });
910/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TOO_MANY_REQUESTS", function() { return TOO_MANY_REQUESTS; });
911/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UNAUTHORIZED", function() { return UNAUTHORIZED; });
912/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UNPROCESSABLE_ENTITY", function() { return UNPROCESSABLE_ENTITY; });
913/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UNSUPPORTED_MEDIA_TYPE", function() { return UNSUPPORTED_MEDIA_TYPE; });
914/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "USE_PROXY", function() { return USE_PROXY; });
915
916/**
917 * Returns the reason phrase for the given status code.
918 * If the given status code does not exist, an error is thrown.
919 *
920 * @param {number|string} statusCode The HTTP status code
921 * @returns {string} The associated reason phrase (e.g. "Bad Request", "OK")
922 * */
923function getReasonPhrase(statusCode) {
924 var result = statusCodeToReasonPhrase[statusCode.toString()];
925 if (!result) {
926 throw new Error("Status code does not exist: " + statusCode);
927 }
928 return result;
929}
930/**
931 * Returns the status code for the given reason phrase.
932 * If the given reason phrase does not exist, undefined is returned.
933 *
934 * @param {string} reasonPhrase The HTTP reason phrase (e.g. "Bad Request", "OK")
935 * @returns {string} The associated status code
936 * */
937function getStatusCode(reasonPhrase) {
938 var result = reasonPhraseToStatusCode[reasonPhrase];
939 if (!result) {
940 throw new Error("Reason phrase does not exist: " + reasonPhrase);
941 }
942 return result;
943}
944/**
945 * @deprecated
946 *
947 * Returns the reason phrase for the given status code.
948 * If the given status code does not exist, undefined is returned.
949 *
950 * Deprecated in favor of getReasonPhrase
951 *
952 * @param {number|string} statusCode The HTTP status code
953 * @returns {string|undefined} The associated reason phrase (e.g. "Bad Request", "OK")
954 * */
955var getStatusText = getReasonPhrase;
956
957// Exporting constants directly to maintain compatability with v1
958// These are deprecated. Please don't add any new codes here.
959/**
960 * @deprecated Please use StatusCodes.ACCEPTED
961 *
962 * */
963var ACCEPTED = 202;
964/**
965 * @deprecated Please use StatusCodes.BAD_GATEWAY
966 *
967 * */
968var BAD_GATEWAY = 502;
969/**
970 * @deprecated Please use StatusCodes.BAD_REQUEST
971 *
972 * */
973var BAD_REQUEST = 400;
974/**
975 * @deprecated Please use StatusCodes.CONFLICT
976 *
977 * */
978var CONFLICT = 409;
979/**
980 * @deprecated Please use StatusCodes.CONTINUE
981 *
982 * */
983var CONTINUE = 100;
984/**
985 * @deprecated Please use StatusCodes.CREATED
986 *
987 * */
988var CREATED = 201;
989/**
990 * @deprecated Please use StatusCodes.EXPECTATION_FAILED
991 *
992 * */
993var EXPECTATION_FAILED = 417;
994/**
995 * @deprecated Please use StatusCodes.FAILED_DEPENDENCY
996 *
997 * */
998var FAILED_DEPENDENCY = 424;
999/**
1000 * @deprecated Please use StatusCodes.FORBIDDEN
1001 *
1002 * */
1003var FORBIDDEN = 403;
1004/**
1005 * @deprecated Please use StatusCodes.GATEWAY_TIMEOUT
1006 *
1007 * */
1008var GATEWAY_TIMEOUT = 504;
1009/**
1010 * @deprecated Please use StatusCodes.GONE
1011 *
1012 * */
1013var GONE = 410;
1014/**
1015 * @deprecated Please use StatusCodes.HTTP_VERSION_NOT_SUPPORTED
1016 *
1017 * */
1018var HTTP_VERSION_NOT_SUPPORTED = 505;
1019/**
1020 * @deprecated Please use StatusCodes.IM_A_TEAPOT
1021 *
1022 * */
1023var IM_A_TEAPOT = 418;
1024/**
1025 * @deprecated Please use StatusCodes.INSUFFICIENT_SPACE_ON_RESOURCE
1026 *
1027 * */
1028var INSUFFICIENT_SPACE_ON_RESOURCE = 419;
1029/**
1030 * @deprecated Please use StatusCodes.INSUFFICIENT_STORAGE
1031 *
1032 * */
1033var INSUFFICIENT_STORAGE = 507;
1034/**
1035 * @deprecated Please use StatusCodes.INTERNAL_SERVER_ERROR
1036 *
1037 * */
1038var INTERNAL_SERVER_ERROR = 500;
1039/**
1040 * @deprecated Please use StatusCodes.LENGTH_REQUIRED
1041 *
1042 * */
1043var LENGTH_REQUIRED = 411;
1044/**
1045 * @deprecated Please use StatusCodes.LOCKED
1046 *
1047 * */
1048var LOCKED = 423;
1049/**
1050 * @deprecated Please use StatusCodes.METHOD_FAILURE
1051 *
1052 * */
1053var METHOD_FAILURE = 420;
1054/**
1055 * @deprecated Please use StatusCodes.METHOD_NOT_ALLOWED
1056 *
1057 * */
1058var METHOD_NOT_ALLOWED = 405;
1059/**
1060 * @deprecated Please use StatusCodes.MOVED_PERMANENTLY
1061 *
1062 * */
1063var MOVED_PERMANENTLY = 301;
1064/**
1065 * @deprecated Please use StatusCodes.MOVED_TEMPORARILY
1066 *
1067 * */
1068var MOVED_TEMPORARILY = 302;
1069/**
1070 * @deprecated Please use StatusCodes.MULTI_STATUS
1071 *
1072 * */
1073var MULTI_STATUS = 207;
1074/**
1075 * @deprecated Please use StatusCodes.MULTIPLE_CHOICES
1076 *
1077 * */
1078var MULTIPLE_CHOICES = 300;
1079/**
1080 * @deprecated Please use StatusCodes.NETWORK_AUTHENTICATION_REQUIRED
1081 *
1082 * */
1083var NETWORK_AUTHENTICATION_REQUIRED = 511;
1084/**
1085 * @deprecated Please use StatusCodes.NO_CONTENT
1086 *
1087 * */
1088var NO_CONTENT = 204;
1089/**
1090 * @deprecated Please use StatusCodes.NON_AUTHORITATIVE_INFORMATION
1091 *
1092 * */
1093var NON_AUTHORITATIVE_INFORMATION = 203;
1094/**
1095 * @deprecated Please use StatusCodes.NOT_ACCEPTABLE
1096 *
1097 * */
1098var NOT_ACCEPTABLE = 406;
1099/**
1100 * @deprecated Please use StatusCodes.NOT_FOUND
1101 *
1102 * */
1103var NOT_FOUND = 404;
1104/**
1105 * @deprecated Please use StatusCodes.NOT_IMPLEMENTED
1106 *
1107 * */
1108var NOT_IMPLEMENTED = 501;
1109/**
1110 * @deprecated Please use StatusCodes.NOT_MODIFIED
1111 *
1112 * */
1113var NOT_MODIFIED = 304;
1114/**
1115 * @deprecated Please use StatusCodes.OK
1116 *
1117 * */
1118var OK = 200;
1119/**
1120 * @deprecated Please use StatusCodes.PARTIAL_CONTENT
1121 *
1122 * */
1123var PARTIAL_CONTENT = 206;
1124/**
1125 * @deprecated Please use StatusCodes.PAYMENT_REQUIRED
1126 *
1127 * */
1128var PAYMENT_REQUIRED = 402;
1129/**
1130 * @deprecated Please use StatusCodes.PERMANENT_REDIRECT
1131 *
1132 * */
1133var PERMANENT_REDIRECT = 308;
1134/**
1135 * @deprecated Please use StatusCodes.PRECONDITION_FAILED
1136 *
1137 * */
1138var PRECONDITION_FAILED = 412;
1139/**
1140 * @deprecated Please use StatusCodes.PRECONDITION_REQUIRED
1141 *
1142 * */
1143var PRECONDITION_REQUIRED = 428;
1144/**
1145 * @deprecated Please use StatusCodes.PROCESSING
1146 *
1147 * */
1148var PROCESSING = 102;
1149/**
1150 * @deprecated Please use StatusCodes.PROXY_AUTHENTICATION_REQUIRED
1151 *
1152 * */
1153var PROXY_AUTHENTICATION_REQUIRED = 407;
1154/**
1155 * @deprecated Please use StatusCodes.REQUEST_HEADER_FIELDS_TOO_LARGE
1156 *
1157 * */
1158var REQUEST_HEADER_FIELDS_TOO_LARGE = 431;
1159/**
1160 * @deprecated Please use StatusCodes.REQUEST_TIMEOUT
1161 *
1162 * */
1163var REQUEST_TIMEOUT = 408;
1164/**
1165 * @deprecated Please use StatusCodes.REQUEST_TOO_LONG
1166 *
1167 * */
1168var REQUEST_TOO_LONG = 413;
1169/**
1170 * @deprecated Please use StatusCodes.REQUEST_URI_TOO_LONG
1171 *
1172 * */
1173var REQUEST_URI_TOO_LONG = 414;
1174/**
1175 * @deprecated Please use StatusCodes.REQUESTED_RANGE_NOT_SATISFIABLE
1176 *
1177 * */
1178var REQUESTED_RANGE_NOT_SATISFIABLE = 416;
1179/**
1180 * @deprecated Please use StatusCodes.RESET_CONTENT
1181 *
1182 * */
1183var RESET_CONTENT = 205;
1184/**
1185 * @deprecated Please use StatusCodes.SEE_OTHER
1186 *
1187 * */
1188var SEE_OTHER = 303;
1189/**
1190 * @deprecated Please use StatusCodes.SERVICE_UNAVAILABLE
1191 *
1192 * */
1193var SERVICE_UNAVAILABLE = 503;
1194/**
1195 * @deprecated Please use StatusCodes.SWITCHING_PROTOCOLS
1196 *
1197 * */
1198var SWITCHING_PROTOCOLS = 101;
1199/**
1200 * @deprecated Please use StatusCodes.TEMPORARY_REDIRECT
1201 *
1202 * */
1203var TEMPORARY_REDIRECT = 307;
1204/**
1205 * @deprecated Please use StatusCodes.TOO_MANY_REQUESTS
1206 *
1207 * */
1208var TOO_MANY_REQUESTS = 429;
1209/**
1210 * @deprecated Please use StatusCodes.UNAUTHORIZED
1211 *
1212 * */
1213var UNAUTHORIZED = 401;
1214/**
1215 * @deprecated Please use StatusCodes.UNPROCESSABLE_ENTITY
1216 *
1217 * */
1218var UNPROCESSABLE_ENTITY = 422;
1219/**
1220 * @deprecated Please use StatusCodes.UNSUPPORTED_MEDIA_TYPE
1221 *
1222 * */
1223var UNSUPPORTED_MEDIA_TYPE = 415;
1224/**
1225 * @deprecated Please use StatusCodes.USE_PROXY
1226 *
1227 * */
1228var USE_PROXY = 305;
1229
1230
1231/***/ })
1232
1233/******/ },
1234/******/ function(__webpack_require__) { // webpackRuntimeModules
1235/******/ "use strict";
1236/******/
1237/******/ /* webpack/runtime/make namespace object */
1238/******/ !function() {
1239/******/ // define __esModule on exports
1240/******/ __webpack_require__.r = function(exports) {
1241/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
1242/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1243/******/ }
1244/******/ Object.defineProperty(exports, '__esModule', { value: true });
1245/******/ };
1246/******/ }();
1247/******/
1248/******/ /* webpack/runtime/define property getter */
1249/******/ !function() {
1250/******/ // define getter function for harmony exports
1251/******/ var hasOwnProperty = Object.prototype.hasOwnProperty;
1252/******/ __webpack_require__.d = function(exports, name, getter) {
1253/******/ if(!hasOwnProperty.call(exports, name)) {
1254/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
1255/******/ }
1256/******/ };
1257/******/ }();
1258/******/
1259/******/ }
1260);
\No newline at end of file