HTTP 1.1 status reason-phrase (status text) is optional
Dear ETSI Team,
We had an issue with the ITS testing tool on branch STF525.
Namely, it expects the reason-phrase to be present, which is optional according to RFC 7230 (https://tools.ietf.org/html/rfc7230#section-3.1.2):
The reason-phrase element exists for the sole purpose of providing a textual description associated with the numeric status code, mostly out of deference to earlier Internet application protocols that were more frequently used with interactive text clients. A client SHOULD ignore the reason-phrase content.
reason-phrase = *( HTAB / SP / VCHAR / obs-text )
(The asterisk there means that it may not appear at all.)
Some HTTP server implementations now omit this part of the status line, barely emitting
HTTP/1.1 200
(with no "OK" at the end).
The testing tool would fail with an error log like this:
MTC@13cb672994ff: Matching on port httpPort .response.statustext := "" with "OK" unmatched: First message in the queue does not match the template:
We had to change the web server implementation to include the reason-phrase to pass the test.
Thank you for your help!