< Summary

Information
Class: Elsa.Resilience.Endpoints.SimulateResponse.StatusCodeMessageLookup
Assembly: Elsa.Resilience
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Resilience/Endpoints/SimulateResponse/StatusCodeMessageLookup.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 64
Coverable lines: 64
Total lines: 70
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.cctor()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Resilience/Endpoints/SimulateResponse/StatusCodeMessageLookup.cs

#LineLine coverage
 1namespace Elsa.Resilience.Endpoints.SimulateResponse;
 2
 3public static class StatusCodeMessageLookup
 4{
 5    // Mapping of common HTTP status codes to their standard reason phrases/messages
 06    public static readonly Dictionary<int, string> StatusMessages = new()
 07    {
 08        [100] = "Continue",
 09        [101] = "Switching Protocols",
 010        [102] = "Processing",
 011        [200] = "OK",
 012        [201] = "Created",
 013        [202] = "Accepted",
 014        [203] = "Non-Authoritative Information",
 015        [204] = "No Content",
 016        [205] = "Reset Content",
 017        [206] = "Partial Content",
 018        [207] = "Multi-Status",
 019        [208] = "Already Reported",
 020        [226] = "IM Used",
 021        [300] = "Multiple Choices",
 022        [301] = "Moved Permanently",
 023        [302] = "Found",
 024        [303] = "See Other",
 025        [304] = "Not Modified",
 026        [305] = "Use Proxy",
 027        [307] = "Temporary Redirect",
 028        [308] = "Permanent Redirect",
 029        [400] = "Bad Request",
 030        [401] = "Unauthorized",
 031        [402] = "Payment Required",
 032        [403] = "Forbidden",
 033        [404] = "Not Found",
 034        [405] = "Method Not Allowed",
 035        [406] = "Not Acceptable",
 036        [407] = "Proxy Authentication Required",
 037        [408] = "Request Timeout",
 038        [409] = "Conflict",
 039        [410] = "Gone",
 040        [411] = "Length Required",
 041        [412] = "Precondition Failed",
 042        [413] = "Payload Too Large",
 043        [414] = "URI Too Long",
 044        [415] = "Unsupported Media Type",
 045        [416] = "Range Not Satisfiable",
 046        [417] = "Expectation Failed",
 047        [418] = "I'm a teapot",
 048        [421] = "Misdirected Request",
 049        [422] = "Unprocessable Entity",
 050        [423] = "Locked",
 051        [424] = "Failed Dependency",
 052        [425] = "Too Early",
 053        [426] = "Upgrade Required",
 054        [428] = "Precondition Required",
 055        [429] = "Too Many Requests",
 056        [431] = "Request Header Fields Too Large",
 057        [451] = "Unavailable For Legal Reasons",
 058        [500] = "Internal Server Error",
 059        [501] = "Not Implemented",
 060        [502] = "Bad Gateway",
 061        [503] = "Service Unavailable",
 062        [504] = "Gateway Timeout",
 063        [505] = "HTTP Version Not Supported",
 064        [506] = "Variant Also Negotiates",
 065        [507] = "Insufficient Storage",
 066        [508] = "Loop Detected",
 067        [510] = "Not Extended",
 068        [511] = "Network Authentication Required",
 069    };
 70}

Methods/Properties

.cctor()