The request succeeded and the response carries the representation you asked for. For a GET this is the body; for a PUT or POST it is the result of the operation.
Defined in RFC 9110 §15.3.1 — 200 OK · MDN reference
The default answer to a successful GET, and to a PUT or POST whose result is returned inline. It is the code you will see most and inspect least.
Worth asserting on more carefully than most suites do: a 200 with the wrong body, a stale representation or a missing header is still a 200, and a status-only assertion will pass it.
Do not stop at the status line. Validate the body against a schema, check the content type is what you asked for, and confirm any caching headers you rely on are present. A 200 carrying an error object in the body is a real and common API design, and a status-only assertion sails straight past it.
408 endpoints in this playground answer with 200. Every one is free, needs no signup, and can be called from the browser or with curl.
GET https://funapi.dev/api/friends/v1/characters — List all characters (paginated) — v1, deprecated (Friends API) Open & run this endpointGET https://funapi.dev/api/friends/v1/characters/{id} — Get one character (Friends API) Open & run this endpointPUT https://funapi.dev/api/friends/v1/characters/{id} — Update a character (Friends API) Open & run this endpointPOST https://funapi.dev/api/friends/v1/characters/bulk-delete — Bulk-delete characters by id (partial success supported) (Friends API) Open & run this endpointGET https://funapi.dev/api/friends/v1/episodes — List episodes, filter by season (Friends API) Open & run this endpointGET https://funapi.dev/api/friends/v1/quotes/random — A random quote (Friends API) Open & run this endpointGET https://funapi.dev/api/friends/v1/characters/{id}/quotes — Get a character's quotes (nested resource) (Friends API) Open & run this endpointGET https://funapi.dev/api/friends/v2/characters — List characters — v2 (breaking change: job → occupation, re-wrapped) (Friends API) Open & run this endpointGET https://funapi.dev/api/friends/version — Discover supported API versions (Friends API) Open & run this endpointGET https://funapi.dev/api/friends/characters — Content-negotiated version via Accept header (406 if unsupported) (Friends API) Open & run this endpointPOST https://funapi.dev/api/friends/v1/graphql — Run a query or mutation over character data (Friends API) Open & run this endpointGET https://funapi.dev/api/superheroes/v1/heroes — List heroes (paginated, filterable) (Superhero API) Open & run this endpointGET https://funapi.dev/api/superheroes/v1/heroes/{id} — Get one hero (Superhero API) Open & run this endpointGET https://funapi.dev/api/superheroes/v1/heroes/{id}/nemesis — Get a hero's nemesis (nested resource) (Superhero API) Open & run this endpointGET https://funapi.dev/api/pizza/v1/menu — Get the menu (Pizza Orders API) Open & run this endpointGET https://funapi.dev/api/pizza/v1/orders/{id} — Track an order (Pizza Orders API) Open & run this endpointPUT https://funapi.dev/api/pizza/v1/orders/{id}/status — Update order status (Pizza Orders API) Open & run this endpointPATCH https://funapi.dev/api/pizza/v1/orders/{id} — Partially update an order (address or size) (Pizza Orders API) Open & run this endpointGET https://funapi.dev/api/pizza/v1/oven/preheat — Preheat the oven — always takes ~3s (Pizza Orders API) Open & run this endpointGET https://funapi.dev/api/coffee/v1/drinks — List drinks, filter by type (Coffee Shop API) Open & run this endpointGET https://funapi.dev/api/coffee/v1/drinks/{id} — Get one drink (Coffee Shop API) Open & run this endpointGET https://funapi.dev/api/coffee/v1/rush-hour — Rush hour special — max 3 requests per 10s (Coffee Shop API) Open & run this endpointPUT https://funapi.dev/api/coffee/v1/orders/{id}/ready — Mark an order ready (409 if already ready) (Coffee Shop API) Open & run this endpointGET https://funapi.dev/api/football/v1/teams — List teams (paginated) (Football API) Open & run this endpointGET https://funapi.dev/api/football/v1/teams/{id} — Get one team (Football API) Open & run this endpoint…and 383 more endpoints across the catalog.
All HTTP status codes · All 55 mock REST APIs · Getting started guide
Last updated