Skip to content

500 Server Error Page

Dark Bootstrap 5 500 error page with a server rack illustration, retry button, status page link, copyable reference ID and service status list.

Also known as: 500 error page, internal server error page, server down page, error 500 screen

Bootstrap 5 Error Pages Responsive Dark #500 #dark #error-page #responsive #status

500 Server Error Page live demo

Open in new tab

Bootstrap 5 code (HTML, CSS, JS)

A dark Bootstrap 5 "500 Internal Server Error" page with an illustrated server rack, a retry button with a loading state, a link to your status page, a copyable reference ID and a small service status list. Use it as the error template of a web app, SaaS dashboard or API documentation site.

How it works

The root is main.bse-page, a full-height flex container with a subtle grid background. A Bootstrap row holds two columns: the text column and the .bse-art illustration, which order-md-2 moves to the right on medium screens and up. The illustration is an inline SVG (.bse-rack) with three server units; the failing unit has a blinking .bse-led--fail and a spark, and the rotated .bse-code label shows "500".

The text column starts with a .bse-badge, the heading and a lead paragraph. In .bse-actions, the .bse-retry button is the main action, followed by a ghost "System status" button and a .bse-home link. Below them, .bse-panel contains the .bse-ref row with the reference ID and the .bse-copy button, plus the .bse-services list.

The script runs on DOMContentLoaded for every .bse-page. When data-bse-demo="true" is set, a click on .bse-retry shows a spinner for 1.2 seconds and then writes a message with the attempt count into .bse-feedback. Without the attribute, the button simply calls window.location.reload(). The copy button uses the Clipboard API and falls back to document.execCommand('copy') in older or sandboxed contexts.

Customization

  • --bse-accent and --bse-accent-hover in .bse-page: recolor the buttons, the 500 label, the failing server and the badge.
  • --bse-bg, --bse-surface and --bse-border in .bse-page: switch to a different dark palette or a lighter theme.
  • --bse-ok and --bse-warn in .bse-page: change the healthy and warning indicator colors.
  • Remove data-bse-demo="true" from .bse-page: the retry button reloads the page instead of simulating a check.
  • The window.setTimeout in the retry handler of script.js: replace it with a fetch() to a health-check endpoint and reload on success.
  • The text of .bse-ref__value: print the real request or trace ID from your server.
  • The .bse-services items: use .bse-dot--down and .bse-state--down to mark a service with an outage, or remove the list.

Use cases

  • Web apps: a friendly page shows when the server fails, with a retry button that has a loading state
  • SaaS dashboards: a copyable reference ID helps users give support the right details
  • API documentation sites: a link to the status page and a list of service statuses reduce confusion
  • Outage handling: a server rack illustration explains the problem in a calm visual way

Accessibility

The page is a main landmark labelled by its heading. The illustration is aria-hidden, and the error code is repeated in text inside the badge. .bse-feedback has role="status", so retry results and copy confirmations are announced without moving focus. The icon-only copy button has an aria-label, and during retrying the button uses aria-disabled so keyboard focus stays on it. All interactive elements show a yellow focus outline, and the blinking LED stops with prefers-reduced-motion: reduce.

Usage notes

Requires Bootstrap 5 and Bootstrap Icons. Serve this page with the HTTP status 500 so search engines and monitoring tools see the real error.

500 Server Error Page at a glance

Framework
Bootstrap 5
Code
HTML, CSS, JavaScript
JavaScript
Vanilla JavaScript, no jQuery
Dependencies
Bootstrap 5, Bootstrap Icons
Layout
Responsive, works on mobile, dark design
Category
Error Pages
License
Free for personal and commercial use

Questions about this template

Can I use the 500 Server Error Page code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

Load Bootstrap 5 and Bootstrap Icons from a CDN (the links are under Requirements). Paste the HTML where the component should appear, add the CSS to your stylesheet and load the JavaScript before the closing </body> tag. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. The script is plain vanilla JavaScript, so it works without jQuery, React or Vue. You can still use the markup inside those frameworks.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

Add these to your page (already included in the download):

  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
  • <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
500 Server Error Page – free Bootstrap 5 error page template
500 Server Error Page · free Bootstrap 5 error page template

More Error Pages

Simple 404 Page – free Tailwind CSS error page template

Simple 404 Page

Clean Tailwind CSS 404 error page with an animated unplugged-cable illustration, site search, helpful link cards and a go-back button.

Animated 404 Page – free Pure CSS error page template

Animated 404 Page

Playful full-page 404 error template with a floating planet, short message, site search field and home link in pure CSS.