HTTP methods and status codes
Every request names an action and every reply carries a number for the result. Knowing both lets a tester say exactly what was asked, what happened and what should have happened.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a library desk. At a library desk you can do four things: look up a book, add a new book, replace a book with a new copy, or remove a book. The librarian answers with a clear result, such as, here it is, done, not found, or no.
Daily List is a to-do list app. Its works like that desk. A request names the action, which is called the HyperText Transfer Protocol (HTTP) method. The reply starts with a three-digit number, the , that tells how it went.
Tom, the tester, opens a list that someone deleted, and the reply number is 404, which means not found. He opens a list that belongs to another test user, and the reply number is 403, which means the server understood the request and refuses it. In this example, the list is private and has not been shared with him.
Some requests have the same intended server effect when repeated. Removing the same book twice leaves it absent, even if the second reply says not found. Such methods are idempotent: identical repeats have the same intended effect as one request, not necessarily identical replies or logs. Adding with POST is not idempotent by default; a product may provide a separate deduplication contract.
The picture has a limit. A librarian uses judgement. A server follows its rules exactly, and a small mistake in the rules gives a wrong number.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
PLAIN WORDS · 3 in this section
- hypertext
- text that links to other pages
- idempotent
- repeating it has the same effect as doing it once
- deduplication
- spotting and dropping repeated copies of the same message
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB Saying exactly what was asked and what happened, with a method and a number.
- What was asked?
- What number came back?
- What state is the server in?
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| Library desk | The API |
| Look up, add, replace, remove | The main request kinds |
| The librarian's answer | Status code |
| Repeated removal leaves the book absent | Idempotent |
WHERE THIS PICTURE STOPS
- A librarian uses judgement. A server follows its rules exactly.
- Adding a book twice leaves two copies. Not every action is safe to repeat.
- A librarian says no in words. A server says it with a number.
HOOK
Ask, number, state.
REMEMBER IT THIS WAY
A contrast: two neighbours told apart by one test.
A 404 means not found. A 403 means the server understood the request and refuses it; it need not establish who you are.
| In the trick | What it stands for |
|---|---|
404 | the list was deleted, so the reply says not found |
403 | a list that belongs to another test user |
TELL A FRIEND
A library desk lets you look up, add, replace or remove a book, and the librarian answers with a clear result. An takes a method and answers with a number.
OFTEN MIXED UP WITH Reading the network tab. The network tab lesson shows requests and replies. This lesson reads the action and the number in them.
PRACTISE AND KEEP
Sources for this topic — 24 sources
- Market practice
RFC 9110 — HTTP Semantics ↗ — IETF · RFC 9110 defines the request methods and the status codes: 201 Created, 204 No Content, 405 Method Not Allowed with an Allow header, 409 Conflict and 422 Unprocessable Content were seen as search excerpts; PUT, DELETE and the safe methods are idempotent, seen only through a summary written by someone else (registry entry; page not opened)
Internet Standard, June 2022, obsoleting RFC 7230 through 7235.
Cited for method semantics only. "Idempotent" in RFC 9110 is a property of a method: that repeating the request has the same intended effect on the origin server. It is not the same claim as "this payment cannot be duplicated", which is a scheme-level guarantee with its own documents.
Read through a mirror, because the publisher's own domain could not be fetched (a reachability gap, not a statement about the publisher). A 403 there is a policy refusal and says nothing about whether the document exists or is reachable elsewhere.
Anyone on an unrestricted network should open the canonical URL above and confirm the section and page numbers cited against it. Every claim drawn from this entry is written so that it can be checked against a numbered page.
Read in full from the HTTP Working Group's own publication mirror at httpwg.github.io.
- Market practice
HyperText Transfer Protocol (HTTP) response status codes (Mozilla developer docs) ↗ — Mozilla (developer documentation) · Status codes come in five classes: informational, success, redirection, client error and server error (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
401 Unauthorized (Mozilla developer docs, HyperText Transfer Protocol (HTTP) reference) ↗ — Mozilla (developer documentation) · 401 means the request lacks valid credentials; the name is misleading since it means unauthenticated (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
403 Forbidden (Mozilla developer docs, HyperText Transfer Protocol (HTTP) reference) ↗ — Mozilla (developer documentation) · 403 means the server understood the request but refuses it, usually because the user lacks permission; repeating it unchanged fails the same way (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Additional HyperText Transfer Protocol (HTTP) status codes (Request for Comments 6585) ↗ — IETF · 429 Too Many Requests is for rate limiting; a response may include a Retry-After header (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
RFC6585, April2012, Standards Track; complete section4/429 read 8 November2026. Rate-limit response MAY contain Retry-After; user identity and counting policy are not fixed. Not an all-HTTP-error retry rule.
- Market practice
Hypertext Transfer Protocol (HTTP) request methods (Mozilla developer docs) ↗ — Mozilla (MDN Web Docs) · Page on request methods (page not opened; staged by the business analysis batch 13)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
How to test Representational State Transfer (REST) APIs step by step (API Challenges, EvilTester) ↗ — EvilTester (Alan Richardson) · A tutorial that says to check response headers and body as well as the status code (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practiceDraft, not in force09, 21 November 2026; expires 25 May 2027
The Idempotency-Key HTTP Header Field — draft-ietf-httpapi-idempotency-key-header-09 ↗ — IETF HTTPAPI Working Group · An IETF draft for a header that lets a server recognise a repeated request (registry entry; a draft, page not opened)
Primary IETF revision 09 §§2.2–2.7 and Appendix A checked 23 November 2026. It is an active Internet-Draft. Section 2.6 describes a response consistent with completion according to user intent. Revision 09 clarifies optional fingerprints, lets each resource define uniqueness, and recommends that resources document behaviour and expiry. The provider contract determines actual payment retry behaviour.
- Market practice
Idempotent - MDN Web Docs glossary ↗ — MDN Web Docs (Mozilla) · RFC 9110 section 9.2.2 and MDN: PUT and DELETE are idempotent but not safe; safe methods are a subset of idempotent ones. Search excerpts, pages not opened.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Safe (HTTP Methods) - MDN Web Docs glossary ↗ — MDN Web Docs (Mozilla) · RFC 9110 section 9.2.2 and MDN: PUT and DELETE are idempotent but not safe; safe methods are a subset of idempotent ones. Search excerpts, pages not opened.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
RFC 9110: HTTP Semantics, section 9.2.2 Idempotent Methods ↗ — IETF · Search excerpts of RFC 9110 9.2.2 and MDN, pages not opened.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
502 vs 503: what is the difference? (ApyHub) ↗ — ApyHub · Definitions from RFC 9110 and MDN already in the registry; plain-words summary from ApyHub '502 vs 503' (search excerpt, page not opened).
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
HyperText Transfer Protocol (HTTP) caching (Mozilla developer docs) ↗ — Mozilla (developer documentation) · MDN 304 and If-None-Match pages returned by search (search excerpts, pages not opened). 415 definition is in RFC 9110.
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
304 Not Modified (MDN Web Docs) ↗ — Mozilla · MDN 304 and If-None-Match pages returned by search (search excerpts, pages not opened). 415 definition is in RFC 9110.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
If-None-Match header (MDN Web Docs) ↗ — Mozilla · MDN 304 and If-None-Match pages returned by search (search excerpts, pages not opened). 415 definition is in RFC 9110.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
HTTP PATCH vs PUT (Zuplo) ↗ — Zuplo · RFC 9110 lists PUT and DELETE as idempotent and does not list PATCH. Zuplo 'HTTP PATCH vs PUT' (search excerpt, page not opened).
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Idempotent - Glossary ↗ — MDN Web Docs (Mozilla) · Idempotent method: one request has the same intended effect as several identical ones; PUT and DELETE are, POST is not (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
201 Created - HTTP ↗ — MDN Web Docs (Mozilla) · 201 means a request led to a created resource; typically returned for POST (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Official requirement
RFC 9110 — HTTP Semantics ↗ — IETF · RFC9110/STD97,June2022:9.1,9.2.1–9.2.2,13.1.2,15.5.2,15.5.4,15.5.6 and15.5.9; safe/idempotent intended effects,401challenge/403refusal,405Allow/501,304conditionalGET/HEAD versus412,408incomplete request (relevant primary passages opened6November2026).
Internet Standard, June 2022, obsoleting RFC 7230 through 7235.
Cited for method semantics only. "Idempotent" in RFC 9110 is a property of a method: that repeating the request has the same intended effect on the origin server. It is not the same claim as "this payment cannot be duplicated", which is a scheme-level guarantee with its own documents.
Read through a mirror, because the publisher's own domain could not be fetched (a reachability gap, not a statement about the publisher). A 403 there is a policy refusal and says nothing about whether the document exists or is reachable elsewhere.
Anyone on an unrestricted network should open the canonical URL above and confirm the section and page numbers cited against it. Every claim drawn from this entry is written so that it can be checked against a numbered page.
Read in full from the HTTP Working Group's own publication mirror at httpwg.github.io.
- Market practice
RFC 9110 — HTTP Semantics ↗ — IETF · RFC9110/STD97 June2022 complete selected sections banked V72, including9.1,9.2.1/.2,9.3.1/.3/.4/.5,13.1.1/.2,10.2.3 and selected15.x statuses: intended effects differ from identical responses;401challenge,405Allow,415format/encoding and500unexpected condition.
Internet Standard, June 2022, obsoleting RFC 7230 through 7235.
Cited for method semantics only. "Idempotent" in RFC 9110 is a property of a method: that repeating the request has the same intended effect on the origin server. It is not the same claim as "this payment cannot be duplicated", which is a scheme-level guarantee with its own documents.
Read through a mirror, because the publisher's own domain could not be fetched (a reachability gap, not a statement about the publisher). A 403 there is a policy refusal and says nothing about whether the document exists or is reachable elsewhere.
Anyone on an unrestricted network should open the canonical URL above and confirm the section and page numbers cited against it. Every claim drawn from this entry is written so that it can be checked against a numbered page.
Read in full from the HTTP Working Group's own publication mirror at httpwg.github.io.
- Market practice
Additional HyperText Transfer Protocol (HTTP) status codes (Request for Comments 6585) ↗ — IETF · RFC6585 April2012 complete1/2/4 actually read7November2026:429 rate limiting; response may include Retry-After; counting policy is not fixed by this status.
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
RFC6585, April2012, Standards Track; complete section4/429 read 8 November2026. Rate-limit response MAY contain Retry-After; user identity and counting policy are not fixed. Not an all-HTTP-error retry rule.
- Market practice
RFC5789 — PATCH Method for HTTP ↗ — Internet Engineering Task Force · Complete2/2.1/2.2, March2010: patch media type defines instructions, atomic application, no inherent safety/idempotence.
Only named complete units actually read under V72 Phase1 gate01d542c62. No whole-document/tool/server conformance claim.
- Market practice
RFC7396 — JSON Merge Patch ↗ — Internet Engineering Task Force · Complete1/2, October2014: object-member merge, null removal and whole-array replacement; not all PATCH formats.
Only named complete units actually read under V72 Phase1 gate01d542c62. No whole-document/tool/server conformance claim.
- Market practice
RFC6902 — JavaScript Object Notation (JSON) Patch ↗ — Internet Engineering Task Force · Complete1/2/3/4/all4.1–4.6/5/7, April2013: ordered operations, pointer paths, conditions and error handling; not a universal object-field merge.
Only named complete units actually read under V72 Phase1 gate01d542c62. No whole-document/tool/server conformance claim.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.