< 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
100%
Covered lines: 64
Uncovered lines: 0
Coverable lines: 64
Total lines: 70
Line coverage: 100%
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%11100%

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
 16    public static readonly Dictionary<int, string> StatusMessages = new()
 17    {
 18        [100] = "Continue",
 19        [101] = "Switching Protocols",
 110        [102] = "Processing",
 111        [200] = "OK",
 112        [201] = "Created",
 113        [202] = "Accepted",
 114        [203] = "Non-Authoritative Information",
 115        [204] = "No Content",
 116        [205] = "Reset Content",
 117        [206] = "Partial Content",
 118        [207] = "Multi-Status",
 119        [208] = "Already Reported",
 120        [226] = "IM Used",
 121        [300] = "Multiple Choices",
 122        [301] = "Moved Permanently",
 123        [302] = "Found",
 124        [303] = "See Other",
 125        [304] = "Not Modified",
 126        [305] = "Use Proxy",
 127        [307] = "Temporary Redirect",
 128        [308] = "Permanent Redirect",
 129        [400] = "Bad Request",
 130        [401] = "Unauthorized",
 131        [402] = "Payment Required",
 132        [403] = "Forbidden",
 133        [404] = "Not Found",
 134        [405] = "Method Not Allowed",
 135        [406] = "Not Acceptable",
 136        [407] = "Proxy Authentication Required",
 137        [408] = "Request Timeout",
 138        [409] = "Conflict",
 139        [410] = "Gone",
 140        [411] = "Length Required",
 141        [412] = "Precondition Failed",
 142        [413] = "Payload Too Large",
 143        [414] = "URI Too Long",
 144        [415] = "Unsupported Media Type",
 145        [416] = "Range Not Satisfiable",
 146        [417] = "Expectation Failed",
 147        [418] = "I'm a teapot",
 148        [421] = "Misdirected Request",
 149        [422] = "Unprocessable Entity",
 150        [423] = "Locked",
 151        [424] = "Failed Dependency",
 152        [425] = "Too Early",
 153        [426] = "Upgrade Required",
 154        [428] = "Precondition Required",
 155        [429] = "Too Many Requests",
 156        [431] = "Request Header Fields Too Large",
 157        [451] = "Unavailable For Legal Reasons",
 158        [500] = "Internal Server Error",
 159        [501] = "Not Implemented",
 160        [502] = "Bad Gateway",
 161        [503] = "Service Unavailable",
 162        [504] = "Gateway Timeout",
 163        [505] = "HTTP Version Not Supported",
 164        [506] = "Variant Also Negotiates",
 165        [507] = "Insufficient Storage",
 166        [508] = "Loop Detected",
 167        [510] = "Not Extended",
 168        [511] = "Network Authentication Required",
 169    };
 70}

Methods/Properties

.cctor()