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
### 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.