HyperText Transfer Protocol (HTTP)
Client sends request (HEAD, GET, PUT)
Server replies with
- response code (3-digit)
- response text (string)
- document (depending on code)
Client displays document or error to user
Notes:
Codes:
2xx Success (200 ok)
3xx Warnings (302 redirect, 304 cached)
4xx Client-side errors
400 Bad request (browser sent bad HTTP)
401 Unauthorized (no user/password)
403 Forbidden (permission denied)
404 Not found (path or doc typo)
5xx Server-side errors
500 Server error (usu. bad CGI script)
501 Not implemented (feature)
502 Temporarily overloaded (server swamped)
503 Gateway timeout (proxy server swamped)
HTTP 1.0 is current. 1.1 is proposed.