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.
259 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 — Paginated character list, with Deprecation/Sunset/Link headers pointing at v2 (Friends API) Open & run this endpointGET https://funapi.dev/api/friends/v1/characters/{id} — The character (Friends API) Open & run this endpointPUT https://funapi.dev/api/friends/v1/characters/{id} — Updated (Friends API) Open & run this endpointPOST https://funapi.dev/api/friends/v1/characters/bulk-delete — All ids existed and were deleted (Friends API) Open & run this endpointGET https://funapi.dev/api/friends/v1/episodes — Episode list (Friends API) Open & run this endpointGET https://funapi.dev/api/friends/v1/quotes/random — One random quote (Friends API) Open & run this endpointGET https://funapi.dev/api/friends/v1/characters/{id}/quotes — Matching quotes (Friends API) Open & run this endpointGET https://funapi.dev/api/friends/v2/characters — v2 shape: { apiVersion, data: { items, count } }, occupation replaces job (Friends API) Open & run this endpointGET https://funapi.dev/api/friends/version — Current, supported and deprecated versions (Friends API) Open & run this endpointGET https://funapi.dev/api/friends/characters — Shape depends on negotiated version (Friends API) Open & run this endpointPOST https://funapi.dev/api/friends/v1/graphql — GraphQL convention: always 200, with data and/or an errors array (Friends API) Open & run this endpointGET https://funapi.dev/api/superheroes/v1/heroes — Paginated hero list (Superhero API) Open & run this endpointGET https://funapi.dev/api/superheroes/v1/heroes/{id} — The hero (Superhero API) Open & run this endpointGET https://funapi.dev/api/superheroes/v1/heroes/{id}/nemesis — The nemesis (Superhero API) Open & run this endpointGET https://funapi.dev/api/pizza/v1/menu — The menu (Pizza Orders API) Open & run this endpointGET https://funapi.dev/api/pizza/v1/orders/{id} — The order (Pizza Orders API) Open & run this endpointPUT https://funapi.dev/api/pizza/v1/orders/{id}/status — Updated (Pizza Orders API) Open & run this endpointPATCH https://funapi.dev/api/pizza/v1/orders/{id} — Updated (Pizza Orders API) Open & run this endpointGET https://funapi.dev/api/pizza/v1/oven/preheat — Preheated, after a deliberate ~3s delay (Pizza Orders API) Open & run this endpointGET https://funapi.dev/api/coffee/v1/drinks — Drink list (Coffee Shop API) Open & run this endpointGET https://funapi.dev/api/coffee/v1/drinks/{id} — The drink (Coffee Shop API) Open & run this endpointGET https://funapi.dev/api/coffee/v1/rush-hour — Got a spot in line (Coffee Shop API) Open & run this endpointPUT https://funapi.dev/api/coffee/v1/orders/{id}/ready — Marked ready (Coffee Shop API) Open & run this endpointGET https://funapi.dev/api/football/v1/teams — Paginated team list (Football API) Open & run this endpointGET https://funapi.dev/api/football/v1/teams/{id} — The team (Football API) Open & run this endpoint…and 234 more endpoints across the catalog.
All HTTP status codes · All 39 mock REST APIs · Getting started guide
Last updated