Intro

HTTP (HyperText Transfer Protocol) is an application layer protocol for transmitting hypermedia documents such as HTML. that defines how a client and server communicate over a network

img
### 2xx – Success
- 200 OK – Request succeeded
### 4xx – Client Errors
- 400 Bad Request – Invalid request syntax or data
- 401 Unauthorized – Authentication required or failed
- 404 Not Found – Resource does not exist
### 5xx – Server Errors
- 502 Bad Gateway – Invalid response from upstream server
- 503 Service Unavailable – Server unavailable or overloaded
- 504 Gateway Timeout – Upstream server timed out

HTTP follows a classical client-server model, with a client opening a connection to make a request, then waiting until it receives a response from the server. HTTP is a stateless protocol, meaning that the server does not keep any session data between two requests, although the later addition of cookies adds state to some client-server interactions.