diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-01-05 13:31:26 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-01-05 13:31:26 -0700 |
| commit | 450f3bc9250eca86b470ec29c228165054016c76 (patch) | |
| tree | af00566cf5a7044a760147f01b2f5ed7f4ce3e85 /lib/std/http/Client.zig | |
| parent | ba1e53f116b27f97828d495af2ea5b87fd9632cb (diff) | |
| download | zig-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
