500 Internal Server Error JSON response example
Last updated 2026-05-20
Example JSON
Generic "something went wrong" payload with a correlation id.
{
"status": 500,
"error": "Internal Server Error",
"message": "Something went wrong on our end. Please try again shortly.",
"code": "internal_error",
"traceId": "8f0e3b5a-2d61-4f3a-9c0e-7d2e1d5b4a91",
"timestamp": "2026-05-20T18:42:10.302Z"
}Request examples
const res = await fetch('https://jsonexamples.com/http/500/Internal+server+error');
if (!res.ok) {
const err = await res.json();
console.error(res.status, err.message);
}Try the live endpoint
Click below to call /http/500/Internal+server+error from your browser.
GET
/http/500/Internal+server+error{
"hint": "Click 'Run' to call the live endpoint"
}Common variations
Upstream-dependency error
{
"status": 502,
"error": "Bad Gateway",
"message": "Upstream search service did not respond",
"code": "upstream_unavailable",
"upstream": "meilisearch"
}Convert this JSON
Generated starting points for TypeScript, JSON Schema, and Zod. Refine before shipping to production.
export interface 500ServerError {
"status": number;
"error": string;
"message": string;
"code": string;
"traceId": string;
"timestamp": string;
}