tink_http icon indicating copy to clipboard operation
tink_http copied to clipboard

Wrap error codes into 400-600 range

Open back2dos opened this issue 7 years ago • 1 comments

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.

back2dos avatar Apr 10 '18 06:04 back2dos

Related: https://github.com/haxetink/tink_http/commit/13413e2f16cfe53fc8cd987928310729ee33156d

I added that because nodejs will crash when the status code is outside such range.

kevinresol avatar Apr 26 '19 16:04 kevinresol