HTTP
HTTP stands for Hypertext Transfer Protocol. The very first version was 0.9; then came version 1.0.
The key difference between 1.0 and 1.1 is that the client makes a connection with the server and that connection is reused, whereas in HTTP 1.0, the connection is thrown away and for each request, a new connection is created. HTTP 1.1 is also derived by applying the REST constraints to 1.0.
A basic HTTP message is composed of a header and body.
When the client communicates with the server, it communicates via HTTP. The server responds to the client with messages and code.
HTTP/1.1 status codes
There is a broad range of status codes, which indicate to the client what has occurred with the request that has been processed by the server:
2xx
: Success200
: OK201
: Created3xx
: Redirection4xx
: Client error
400
: Bad Request401
: Unauthorized403
: Forbidden404
: Not found409
: Conflict5xx
: Server error500
: Internal server error
We will concentrate on the most common codes and the codes that we will use later...