HTTP Response

Hello

HTTP/1.1 200 OK Date: Thu, 03 Jan 2019 23:26:07 GMT Server: gws Accept-Ranges: bytes Content-Length: 68894 Content-Type: text/html; charset=UTF-8

HTTP STATUS CODES

Status codes indicate the success or failure of a request. They are a 3-digit number where the first digit signifies the class or category of response.

1xx informational response – the request was received, continuing processing. 2xx successful – the request was successfully received, understood, and accepted. 3xx redirection – further action needs to be taken in order to complete the request. 4xx client error – the request contains bad syntax or cannot be fulfilled. 5xx server error – the server failed to fulfil an apparently valid request. Whilst this formal declaration exists, it’s ultimately up to each service to implement the specification. I.e. when should a 404 (not found) response be sent?

HTTP HEADERS

Response headers typically inform the client what type & encoding of the data is being returned and anything which may be pertinent e.g. any throttling data, whether data has been served from a cache, etc.

RESPONSE BODY

The body contains the data returned from the server. The body may be textual or in a binary format.