{ "@context": "https://schema.org", "@id": "https://webspecification.com/spec/resilience/error-pages.jsonld", "@graph": [ { "@type": "TechArticle", "@id": "https://webspecification.com/spec/resilience/error-pages/#article", "headline": "Custom error pages (404, 500)", "description": "Custom error pages must return the correct HTTP status code, explain what went wrong in plain language, and offer the user a way forward without leaking implementation details.", "url": "https://webspecification.com/spec/resilience/error-pages/", "inLanguage": "en", "isPartOf": { "@type": "WebSite", "@id": "https://webspecification.com/#website", "name": "Web Specification Studio", "url": "https://webspecification.com" }, "author": { "@type": "Person", "name": "Web Specification Studio", "url": "https://webspecification.com" }, "publisher": { "@type": "Organization", "@id": "https://webspecification.com/#organization", "name": "Web Specification Studio", "url": "https://webspecification.com" }, "license": "https://creativecommons.org/licenses/by/4.0/", "dateModified": "2026-07-09T00:00:00.000Z", "citation": [ { "@type": "CreativeWork", "name": "RFC 9110 — HTTP Semantics: 404 Not Found", "url": "https://www.rfc-editor.org/rfc/rfc9110.html#name-404-not-found", "publisher": { "@type": "Organization", "name": "IETF" } }, { "@type": "CreativeWork", "name": "RFC 9110 — HTTP Semantics: 500 Internal Server Error", "url": "https://www.rfc-editor.org/rfc/rfc9110.html#name-500-internal-server-error", "publisher": { "@type": "Organization", "name": "IETF" } }, { "@type": "CreativeWork", "name": "Google Search Central — How HTTP status codes affect Google's crawlers", "url": "https://developers.google.com/search/docs/crawling-indexing/http-network-errors", "publisher": { "@type": "Organization", "name": "Google Search Central" } }, { "@type": "CreativeWork", "name": "MDN — HTTP response status codes", "url": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status", "publisher": { "@type": "Organization", "name": "MDN" } } ] }, { "@type": "BreadcrumbList", "@id": "https://webspecification.com/spec/resilience/error-pages/#breadcrumb", "itemListElement": [ { "@type": "ListItem", "position": 1, "name": "Home", "item": "https://webspecification.com/" }, { "@type": "ListItem", "position": 2, "name": "Spec", "item": "https://webspecification.com/spec/" }, { "@type": "ListItem", "position": 3, "name": "Resilience", "item": "https://webspecification.com/spec/resilience/" }, { "@type": "ListItem", "position": 4, "name": "Custom error pages (404, 500)", "item": "https://webspecification.com/spec/resilience/error-pages/" } ] } ] }