aboutsummaryrefslogtreecommitdiff
path: root/lib/std/http/Client.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-01-05 13:31:26 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-01-05 13:31:26 -0700
commit450f3bc9250eca86b470ec29c228165054016c76 (patch)
treeaf00566cf5a7044a760147f01b2f5ed7f4ce3e85 /lib/std/http/Client.zig
parentba1e53f116b27f97828d495af2ea5b87fd9632cb (diff)
downloadzig-450f3bc9250eca86b470ec29c228165054016c76.tar.gz
zig-450f3bc9250eca86b470ec29c228165054016c76.zip
std.http.Class: classify out-of-range codes as server_error
RFC 9110 section 15: Values outside the range 100..599 are invalid. Implementations often use three-digit integer values outside of that range (i.e., 600..999) for internal communication of non-HTTP status (e.g., library errors). A client that receives a response with an invalid status code SHOULD process the response as if it had a 5xx (Server Error) status code.
Diffstat (limited to 'lib/std/http/Client.zig')
0 files changed, 0 insertions, 0 deletions