screen size not supported

500 Internal Server Error JSON response example

Last updated 2026-05-20

When to use this

Use this when something blew up server-side. Include a traceId your support team can correlate with logs, and never leak internals (no stack trace).

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.

// click the button to populate this block

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;
}