# std.http.Class: classify out-of-range codes as server_error · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/450f3bc9250eca86b470ec29c228165054016c76)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 450f3bc9250eca86b470ec29c228165054016c76

Requested commit: 450f3bc9250eca86b470ec29c228165054016c76

Commit: 450f3bc9250eca86b470ec29c228165054016c76

Tree: af00566cf5a7044a760147f01b2f5ed7f4ce3e85

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
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.

```

## Parents

- [ba1e53f116b27f97828d495af2ea5b87fd9632cb](https://git.cafe/gitcafe/zig/commit/ba1e53f116b27f97828d495af2ea5b87fd9632cb?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/450f3bc9250eca86b470ec29c228165054016c76?format=markdown)
