HTTP response start line
The response line consists of the following parts, separated by spaces: the HTTP protocol version, the status code, and a status explanation.
The status code indicates whether the request was successful or an error occurred. This code consists of three digits. For example, the code 200 symbolizes success, and the code 404 indicates to the client that the page at the given URL was not found.
The reason phrase is a short text describing the status code. It is intended for human reading and does not affect the message in any way, and is not required. For example, for the 404 code, the reason phrase would be Not Found.
Let's write an example HTTP response start line for success:
HTTP/1.1 200 OK
Now here's an example of a response for an error:
HTTP/1.1 404 Not Found