HTTP - Status Line

About

The status line is the first line of a response that contains:

  • the version,
  • the returned status (that tells about success or failure of the request)
  • and a message of its own

Example

  • In response to a get
HTTP/1.1 200 OK
  • In response to a get where the resource is not found 404
HTTP/1.1 404 Not Found
HTTP/1.1 304 Not Modified
  • redirect status code with the new location
HTTP/1.1 301 Moved Permanently
Location: https://new URL
HTTP/1.1 200 Connection Established

Powered by ComboStrap