Custom error pages (404, 500)
type: TechArticle
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.
language: en
is part of: Web Specification Studio
author: Web Specification Studio
publisher: Web Specification Studio
license: https://creativecommons.org/licenses/by/4.0/
date modified: 2026-07-09T00:00:00.000Z
citation: RFC 9110 — HTTP Semantics: 404 Not Found
  type: CreativeWork
  publisher: IETF
citation: RFC 9110 — HTTP Semantics: 500 Internal Server Error
  type: CreativeWork
  publisher: IETF
citation: Google Search Central — How HTTP status codes affect Google's crawlers
  type: CreativeWork
  publisher: Google Search Central
citation: MDN — HTTP response status codes
  type: CreativeWork
  publisher: MDN

Web Specification Studio
type: WebSite

Web Specification Studio
type: Organization

breadcrumb
type: BreadcrumbList
item list element: Home
  type: ListItem
  position: 1
  item: https://webspecification.com/
item list element: Spec
  type: ListItem
  position: 2
  item: https://webspecification.com/spec/
item list element: Resilience
  type: ListItem
  position: 3
  item: https://webspecification.com/spec/resilience/
item list element: Custom error pages (404, 500)
  type: ListItem
  position: 4
  item: https://webspecification.com/spec/resilience/error-pages/