Authentication is missing or invalid. Despite the name, this is about identity, not permission — the server does not know who you are.
Defined in RFC 9110 §15.5.2 — 401 Unauthorized · MDN reference
A missing Authorization header, an expired access token, a signature that does not verify, a session that has been revoked.
Test the missing-header case and the invalid-token case separately. They are different bugs and they fail in different places.
A 401 means "authenticate and try again" — refresh the token once and retry, then stop. A refresh loop that never gives up is how a single expired credential becomes a sustained load spike. A compliant server sends a WWW-Authenticate header telling you which scheme it wants.
122 endpoints in this playground answer with 401. Every one is free, needs no signup, and can be called from the browser or with curl.
POST https://funapi.dev/api/friends/v1/characters — Create a character (Friends API) Open & run this endpointPOST https://funapi.dev/api/friends/v1/characters/bulk — Batch-create characters (array body, per-item validation) (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 endpointDELETE https://funapi.dev/api/friends/v1/characters/{id} — Delete a character (Friends API) Open & run this endpointPOST https://funapi.dev/api/superheroes/v1/heroes — Register a new hero (Superhero API) Open & run this endpointDELETE https://funapi.dev/api/superheroes/v1/heroes/{id} — Retire a hero (Superhero API) Open & run this endpointPOST https://funapi.dev/api/superheroes/v1/heroes/versus — Simulate a fight between two heroes (Superhero API) Open & run this endpointPUT https://funapi.dev/api/pizza/v1/orders/{id}/status — Update order status (Pizza Orders API) Open & run this endpointPOST https://funapi.dev/api/football/v1/matches — Simulate a match (Football API) Open & run this endpointDELETE https://funapi.dev/api/football/v1/teams/{id} — Remove a team (409 if it has played matches) (Football API) Open & run this endpointPOST https://funapi.dev/api/movies/v1/movies — Add a movie (Movies API) Open & run this endpointPUT https://funapi.dev/api/movies/v1/movies/{id}/rating — Rate a movie (0–10 inclusive) (Movies API) Open & run this endpointDELETE https://funapi.dev/api/movies/v1/movies/{id} — Remove a movie (Movies API) Open & run this endpointPOST https://funapi.dev/api/movies/v1/movies/{id}/poster — Upload a movie poster (simulated multipart file upload) (Movies API) Open & run this endpointPOST https://funapi.dev/api/wizarding/v1/students — Enroll a student (Harry Potter API) Open & run this endpointPUT https://funapi.dev/api/wizarding/v1/students/{id} — Update a student (Harry Potter API) Open & run this endpointDELETE https://funapi.dev/api/wizarding/v1/students/{id} — Expel a student (Harry Potter API) Open & run this endpointPOST https://funapi.dev/api/galaxy/v1/characters — Add a character (Star Wars API) Open & run this endpointPUT https://funapi.dev/api/galaxy/v1/characters/{id} — Update a character (Star Wars API) Open & run this endpointDELETE https://funapi.dev/api/galaxy/v1/characters/{id} — Remove a character (Star Wars API) Open & run this endpointPOST https://funapi.dev/api/holmes/v1/suspects — Add a suspect to a case (Sherlock Holmes API) Open & run this endpointPUT https://funapi.dev/api/holmes/v1/suspects/{id} — Update a suspect (Sherlock Holmes API) Open & run this endpointDELETE https://funapi.dev/api/holmes/v1/suspects/{id} — Clear a suspect (Sherlock Holmes API) Open & run this endpointPATCH https://funapi.dev/api/holmes/v1/cases/{id} — Update a case status (409 if unchanged) (Sherlock Holmes API) Open & run this endpoint…and 97 more endpoints across the catalog.
All HTTP status codes · All 55 mock REST APIs · Getting started guide
Last updated