HTTP cheatsheet
Status codes
- MDN: HTTP response status codes
- 200 OK
- 301 Moved Permanently
- See
Location
header for redirect URL
- See
- 302 Found
- (temporary redirect)
- 400 Bad Request
- 401 Unauthorized
- 403 Forbidden
- 404 Not Found
- 405 Method Not Allowed
- 500 Internal Server Error
Request syntax
GET /example.txt HTTP/1.1
Host: example.com
Response syntax
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: XXX
Hello, world!