Re: Gump failures

Konstantin Kolinko <[email protected]> Mon, 20 Jan 2025 12:57:46 +0300
Newsgroups gmane.comp.jakarta.gump
Message-ID <CABzHfVmYcBdJe_HF6XKVf-iB5N_i1x1hmz1vAJUDrq86JSkM+g@mail.gmail.com>
>
> Status line contains invalid status code:
> HTTP/1.1 :01 :01 -> [Help 1]

My thought about the status code ":01" is that ':' is the next
character after '9'.
I mean that (char)('0' + 9) is '9', but ('0' + 10) is ':'.
Thus it might be the value of 1001 forced into 3 digits.

BTW,
Apache Tomcat won't produce such value with a HTTP/1.1 response.

Source code is
org.apache.coyote.http11.Http11OutputBuffer.sendStatus(int)

There it goes to Http11OutputBuffer.write(int). that calls an honest
Integer.toString(value); thus producing as many digits as necessary.

BTW,
Checking my mind on seeing 1001 with Clodflare I found their
documentation and it says that
"1XXX errors appear in the HTML body of the response." and HTTP status
codes used are 409, 530, 403, and 429,

Documentation:
https://developers.cloudflare.com/support/troubleshooting/cloudflare-errors/troubleshooting-cloudflare-1xxx-errors/

BTW,
IANA registry defines only codes from 100 through 599, as expected.
Nothing new here.
https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml

Thus I do not know where it comes from.

HTH

Best regards,
Konstantin Kolinko