home blog portfolio Ian Fisher

HTTP cheatsheet

Status codes

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!