| | | 1 | | namespace Elsa.Resilience.Endpoints.SimulateResponse; |
| | | 2 | | |
| | | 3 | | public static class StatusCodeMessageLookup |
| | | 4 | | { |
| | | 5 | | // Mapping of common HTTP status codes to their standard reason phrases/messages |
| | 0 | 6 | | public static readonly Dictionary<int, string> StatusMessages = new() |
| | 0 | 7 | | { |
| | 0 | 8 | | [100] = "Continue", |
| | 0 | 9 | | [101] = "Switching Protocols", |
| | 0 | 10 | | [102] = "Processing", |
| | 0 | 11 | | [200] = "OK", |
| | 0 | 12 | | [201] = "Created", |
| | 0 | 13 | | [202] = "Accepted", |
| | 0 | 14 | | [203] = "Non-Authoritative Information", |
| | 0 | 15 | | [204] = "No Content", |
| | 0 | 16 | | [205] = "Reset Content", |
| | 0 | 17 | | [206] = "Partial Content", |
| | 0 | 18 | | [207] = "Multi-Status", |
| | 0 | 19 | | [208] = "Already Reported", |
| | 0 | 20 | | [226] = "IM Used", |
| | 0 | 21 | | [300] = "Multiple Choices", |
| | 0 | 22 | | [301] = "Moved Permanently", |
| | 0 | 23 | | [302] = "Found", |
| | 0 | 24 | | [303] = "See Other", |
| | 0 | 25 | | [304] = "Not Modified", |
| | 0 | 26 | | [305] = "Use Proxy", |
| | 0 | 27 | | [307] = "Temporary Redirect", |
| | 0 | 28 | | [308] = "Permanent Redirect", |
| | 0 | 29 | | [400] = "Bad Request", |
| | 0 | 30 | | [401] = "Unauthorized", |
| | 0 | 31 | | [402] = "Payment Required", |
| | 0 | 32 | | [403] = "Forbidden", |
| | 0 | 33 | | [404] = "Not Found", |
| | 0 | 34 | | [405] = "Method Not Allowed", |
| | 0 | 35 | | [406] = "Not Acceptable", |
| | 0 | 36 | | [407] = "Proxy Authentication Required", |
| | 0 | 37 | | [408] = "Request Timeout", |
| | 0 | 38 | | [409] = "Conflict", |
| | 0 | 39 | | [410] = "Gone", |
| | 0 | 40 | | [411] = "Length Required", |
| | 0 | 41 | | [412] = "Precondition Failed", |
| | 0 | 42 | | [413] = "Payload Too Large", |
| | 0 | 43 | | [414] = "URI Too Long", |
| | 0 | 44 | | [415] = "Unsupported Media Type", |
| | 0 | 45 | | [416] = "Range Not Satisfiable", |
| | 0 | 46 | | [417] = "Expectation Failed", |
| | 0 | 47 | | [418] = "I'm a teapot", |
| | 0 | 48 | | [421] = "Misdirected Request", |
| | 0 | 49 | | [422] = "Unprocessable Entity", |
| | 0 | 50 | | [423] = "Locked", |
| | 0 | 51 | | [424] = "Failed Dependency", |
| | 0 | 52 | | [425] = "Too Early", |
| | 0 | 53 | | [426] = "Upgrade Required", |
| | 0 | 54 | | [428] = "Precondition Required", |
| | 0 | 55 | | [429] = "Too Many Requests", |
| | 0 | 56 | | [431] = "Request Header Fields Too Large", |
| | 0 | 57 | | [451] = "Unavailable For Legal Reasons", |
| | 0 | 58 | | [500] = "Internal Server Error", |
| | 0 | 59 | | [501] = "Not Implemented", |
| | 0 | 60 | | [502] = "Bad Gateway", |
| | 0 | 61 | | [503] = "Service Unavailable", |
| | 0 | 62 | | [504] = "Gateway Timeout", |
| | 0 | 63 | | [505] = "HTTP Version Not Supported", |
| | 0 | 64 | | [506] = "Variant Also Negotiates", |
| | 0 | 65 | | [507] = "Insufficient Storage", |
| | 0 | 66 | | [508] = "Loop Detected", |
| | 0 | 67 | | [510] = "Not Extended", |
| | 0 | 68 | | [511] = "Network Authentication Required", |
| | 0 | 69 | | }; |
| | | 70 | | } |