</>CodexBash
All articles
Networking

HTTP methods and status codes

The vocabulary of every web request: GET, POST, PUT, PATCH and DELETE, which are safe and which are idempotent, and the status codes from 200 to 504 that every API returns, with when to use each.

CodexBash, , 5 min read

Every web request has a method, saying what the client wants to do, and every response has a status code, saying how it went. Using them correctly makes an API predictable: clients, browsers, caches and monitoring tools all understand them without reading your documentation. This article is the reference you will come back to.

Sign in to read the rest

The whole 5 minute article is free with an account, along with every problem, lesson and tutorial. No card.