What is a status line in HTTP ?

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





Discover More
HTTP - Response

An HTTP response is a message sent from a server to a client in response to a request. It's the second part of a fetch, the first being a request. Example of a response that returns an HTML document...
What are the HTTP Request Methods (Get, Post, Put, )?

The http method is a mandatory header of http request that defines the type of operation. A minimal get request from this page It's used by the web server router to map a request to a function....



Share this page:
Follow us:
Task Runner