UNPKG

2.71 kBJavaScriptView Raw
1"use strict";
2/**
3 * -------------------------------------------------------------------------------------------
4 * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License.
5 * See License in the project root for license information.
6 * -------------------------------------------------------------------------------------------
7 */
8Object.defineProperty(exports, "__esModule", { value: true });
9exports.httpStatusCode = exports.methodStatusCode = void 0;
10/**
11 * @module ChaosHandlerData
12 */
13/**
14 * Contains RequestMethod to corresponding array of possible status codes, used for Random mode
15 */
16exports.methodStatusCode = {
17 GET: [429, 500, 502, 503, 504],
18 POST: [429, 500, 502, 503, 504, 507],
19 PUT: [429, 500, 502, 503, 504, 507],
20 PATCH: [429, 500, 502, 503, 504],
21 DELETE: [429, 500, 502, 503, 504, 507],
22};
23/**
24 * Contains statusCode to statusMessage map
25 */
26exports.httpStatusCode = {
27 100: "Continue",
28 101: "Switching Protocols",
29 102: "Processing",
30 103: "Early Hints",
31 200: "OK",
32 201: "Created",
33 202: "Accepted",
34 203: "Non-Authoritative Information",
35 204: "No Content",
36 205: "Reset Content",
37 206: "Partial Content",
38 207: "Multi-Status",
39 208: "Already Reported",
40 226: "IM Used",
41 300: "Multiple Choices",
42 301: "Moved Permanently",
43 302: "Found",
44 303: "See Other",
45 304: "Not Modified",
46 305: "Use Proxy",
47 307: "Temporary Redirect",
48 308: "Permanent Redirect",
49 400: "Bad Request",
50 401: "Unauthorized",
51 402: "Payment Required",
52 403: "Forbidden",
53 404: "Not Found",
54 405: "Method Not Allowed",
55 406: "Not Acceptable",
56 407: "Proxy Authentication Required",
57 408: "Request Timeout",
58 409: "Conflict",
59 410: "Gone",
60 411: "Length Required",
61 412: "Precondition Failed",
62 413: "Payload Too Large",
63 414: "URI Too Long",
64 415: "Unsupported Media Type",
65 416: "Range Not Satisfiable",
66 417: "Expectation Failed",
67 421: "Misdirected Request",
68 422: "Unprocessable Entity",
69 423: "Locked",
70 424: "Failed Dependency",
71 425: "Too Early",
72 426: "Upgrade Required",
73 428: "Precondition Required",
74 429: "Too Many Requests",
75 431: "Request Header Fields Too Large",
76 451: "Unavailable For Legal Reasons",
77 500: "Internal Server Error",
78 501: "Not Implemented",
79 502: "Bad Gateway",
80 503: "Service Unavailable",
81 504: "Gateway Timeout",
82 505: "HTTP Version Not Supported",
83 506: "Variant Also Negotiates",
84 507: "Insufficient Storage",
85 508: "Loop Detected",
86 510: "Not Extended",
87 511: "Network Authentication Required",
88};
89//# sourceMappingURL=ChaosHandlerData.js.map
\No newline at end of file