The server knows who you are and is refusing anyway. Authentication succeeded; authorization did not.
Defined in RFC 9110 §15.5.4 — 403 Forbidden · MDN reference
A reader trying to write, a tenant reaching for another tenant's data, a request from a blocked region, a valid token missing a scope.
The 401-versus-403 distinction is the single most common auth bug. Test the same endpoint with no token, a valid read-only token and an admin token, and assert all three.
Do not retry, and do not re-authenticate — the credential is fine. Re-authenticating on a 403 is a common and costly bug: it turns a clean permission error into a login storm. Show the user what they lack, or fail the operation.
30 endpoints in this playground answer with 403. 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/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 endpointDELETE https://funapi.dev/api/superheroes/v1/heroes/{id} — Retire a hero (Superhero 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 endpointDELETE https://funapi.dev/api/movies/v1/movies/{id} — Remove a movie (Movies API) Open & run this endpointDELETE https://funapi.dev/api/wizarding/v1/students/{id} — Expel a student (Harry Potter API) Open & run this endpointDELETE https://funapi.dev/api/galaxy/v1/characters/{id} — Remove a character (Star Wars API) Open & run this endpointDELETE https://funapi.dev/api/holmes/v1/suspects/{id} — Clear a suspect (Sherlock Holmes API) Open & run this endpointDELETE https://funapi.dev/api/pokemon/v1/pokemon/{id} — Release a Pokémon (Pokémon API) Open & run this endpointDELETE https://funapi.dev/api/middleearth/v1/fellowship/{id} — Remove a member from the fellowship (Middle-earth API) Open & run this endpointDELETE https://funapi.dev/api/webhooks/v1/subscriptions/{id} — Unsubscribe (Webhooks API) Open & run this endpointDELETE https://funapi.dev/api/office/v1/employees/{id} — Fire an employee (The Office API) Open & run this endpointDELETE https://funapi.dev/api/dinopark/v1/dinosaurs/{id} — Relocate a dinosaur off-site (Dino Park API) Open & run this endpointDELETE https://funapi.dev/api/marvel/v1/heroes/{id} — Retire a hero (Marvel API) Open & run this endpointPOST https://funapi.dev/api/got/v1/nobles/{id}/kill — Kill off a noble (409 if already dead) (Game of Thrones API) Open & run this endpointDELETE https://funapi.dev/api/rickandmorty/v1/characters/{id} — Remove a character (portal them out of existence) (Rick and Morty API) Open & run this endpointPOST https://funapi.dev/api/bank/v1/accounts/{id}/freeze — Freeze an account (admin only) (Bank API) Open & run this endpointDELETE https://funapi.dev/api/airline/v1/bookings/{id} — Cancel a booking (admin only, then 410) (Airline API) Open & run this endpointDELETE https://funapi.dev/api/protocol/v1/documents/{id} — Delete a document (admin only, then 410) (Protocol Lab API) Open & run this endpointPOST https://funapi.dev/api/space/v1/launches/{id}/launch — Light the candle — slow & occasionally aborts (admin only) (Space Agency API) Open & run this endpointDELETE https://funapi.dev/api/starfleet/v1/crew/{id} — Discharge a crew member (admin only) (Starfleet API) Open & run this endpointPOST https://funapi.dev/api/starfleet/v1/tribbles/purge — Beam the tribbles away (admin only) (Starfleet API) Open & run this endpointPUT https://funapi.dev/api/fiba/v1/teams/{id}/staff — Name the head coach and captain — optimistic concurrency via If-Match (FIBA World Cup API) Open & run this endpointPOST https://funapi.dev/api/fiba/v1/games/{id}/simulate — Tip off — four quarters plus overtime until somebody wins (admin only) (FIBA World Cup API) Open & run this endpointGET https://funapi.dev/api/faults/v1/status/{code} — Return any status code on demand (200–599) (Fault Injection API) Open & run this endpoint…and 5 more endpoints across the catalog.
All HTTP status codes · All 55 mock REST APIs · Getting started guide
Last updated