18
A normal HTTP response looks like:
HTTP/1.0 200 OK
Is it OK to omit what the RFC calls the Reason-Phrase? Something like:
HTTP/1.0 200
The RFC says:
Status-Line = HTTP-Version SP Status-Code SP Reason-Phrase CRLF
Reason-Phrase = *<TEXT, excluding CR, LF>
I understand this as:
- An empty string is OK for the Reason-Phrase
- But there should be a space after the Status-Code anyway
So the following would be valid:
HTTP-Version SP Status-Code SP CRLF
Do I understand the RFC correctly?