What is the first line of an HTTP response message called?

Prepare for the eLearnSecurity Junior Penetration Tester exam with our comprehensive quiz platform. Improve your skills with multiple-choice questions, detailed explanations, and exam tips. Get exam ready with ease!

Multiple Choice

What is the first line of an HTTP response message called?

Explanation:
In HTTP responses, the first line is the status line. It carries the protocol version, a numeric status code (like 200, 404, 500), and a human-readable reason phrase (OK, Not Found, Internal Server Error). This line tells the client the result of the request and how to proceed. For example: "HTTP/1.1 200 OK" means the request succeeded. After the status line come the response headers, then a blank line, and finally the body. The other options don’t fit: the response header refers to the block of headers following the status line, the response body is the content after the headers, and a protocol banner isn’t a standard HTTP term for the first line.

In HTTP responses, the first line is the status line. It carries the protocol version, a numeric status code (like 200, 404, 500), and a human-readable reason phrase (OK, Not Found, Internal Server Error). This line tells the client the result of the request and how to proceed. For example: "HTTP/1.1 200 OK" means the request succeeded. After the status line come the response headers, then a blank line, and finally the body. The other options don’t fit: the response header refers to the block of headers following the status line, the response body is the content after the headers, and a protocol banner isn’t a standard HTTP term for the first line.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy