tink_http
tink_http copied to clipboard
Wrap error codes into 400-600 range
When generating status codes from error codes, it should be % 200 + 400, to make sure it always comes out as an error code. It will thus be possible to introduce new error codes outside the HTTP range and let them be mapped to HTTP error codes nicely.
Related: https://github.com/haxetink/tink_http/commit/13413e2f16cfe53fc8cd987928310729ee33156d
I added that because nodejs will crash when the status code is outside such range.