The server failed and cannot say anything more useful. Nothing about the request needs to be wrong.
Defined in RFC 9110 §15.6.1 — 500 Internal Server Error · MDN reference
An unhandled exception, a null dereference, a failed database call with no catch around it — the code that means the server hit something it did not plan for.
Nearly impossible to provoke on demand against a healthy API, which is why retry, fallback and error-reporting paths so often ship untested.
A single retry is defensible for an idempotent request. For anything that writes, retrying a 500 risks doing the work twice, because a 500 does not tell you whether the operation completed before the failure — send an Idempotency-Key so the retry is safe, or do not retry at all.
7 endpoints in this playground answer with 500. Every one is free, needs no signup, and can be called from the browser or with curl.
GET https://funapi.dev/api/pizza/v1/oven/status — Always returns 500 — for negative tests (Pizza Orders API) Open & run this endpointGET https://funapi.dev/api/faults/v1/target — Call the configured flaky target (Fault Injection 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 endpointPOST https://funapi.dev/api/llm/v1/chat/completions — Chat Completions shape: streaming (SSE), tools, JSON mode, failures by model (Mock LLM API) Open & run this endpointPOST https://funapi.dev/api/llm/v1/messages — Messages shape: content blocks, tool_use, SSE events, failures by model (Mock LLM API) Open & run this endpointPOST https://funapi.dev/api/soap/v1/calculator — Add, Subtract, Multiply, Divide — divide by zero returns a SOAP Fault (SOAP Web Service API) Open & run this endpointPOST https://funapi.dev/api/soap/v1/countries — GetCountry by ISO 3166 alpha-2 code (SOAP 1.2 example) (SOAP Web Service API) Open & run this endpointAll HTTP status codes · All 55 mock REST APIs · Getting started guide
Last updated