error-page

Terminal-Style HTTP Error Pages

A collection of single-file HTML error pages (400, 401, 403, 404, 503) styled to resemble a command-line terminal interface. Each page uses pure HTML, CSS, and JavaScript to display the relevant error information with a dynamic typing effect.

Previews

400 Bad Request

400 Bad Request Preview
Simulates processing a request with invalid syntax.
🔗 View

401 Unauthorized

401 Unauthorized Preview
Simulates attempting to access a resource without proper authentication credentials.
🔗 View

403 Forbidden

403 Forbidden Preview
Simulates attempting to access a resource for which the authenticated user lacks permissions.
🔗 View

404 Not Found

404 Not Found Preview
Simulates trying to access a resource or file that does not exist on the server.
🔗 View

503 Service Unavailable

503 Service Unavailable Preview
Simulates a situation where the server is temporarily unable to handle the request (e.g., overload, maintenance).
🔗 View

Features

Files Included

How to Use

  1. Choose: Select the HTML file(s) corresponding to the HTTP errors you want to customize.
  2. Upload: Place the chosen HTML file(s) somewhere accessible by your web server.
  3. Configure: Modify your web server configuration to use these files as custom error documents. The exact method depends on your server software:

    • Apache: Use the ErrorDocument directive in your .htaccess file or server configuration:
      ErrorDocument 400 /path/to/your/400.html
      ErrorDocument 401 /path/to/your/401.html
      ErrorDocument 403 /path/to/your/403.html
      ErrorDocument 404 /path/to/your/404.html
      ErrorDocument 503 /path/to/your/503.html
      
    • Nginx: Use the error_page directive within your server or location block:
      server {
          # ... other configurations ...
      
          error_page 400 /400.html;
          location = /400.html {
              root /path/to/your/error_pages; # Path where you uploaded the files
              internal;
          }
      
          error_page 401 /401.html;
          location = /401.html {
              root /path/to/your/error_pages;
              internal;
          }
      
          error_page 403 /403.html;
          location = /403.html {
              root /path/to/your/error_pages;
              internal;
          }
      
          error_page 404 /404.html;
          location = /404.html {
              root /path/to/your/error_pages;
              internal;
          }
      
          error_page 503 /503.html;
          location = /503.html {
              root /path/to/your/error_pages;
              internal;
          }
      }
      

      (Ensure the root path in the location blocks points to the directory containing your HTML files)

    • Other Servers: Consult the documentation for your specific web server (Caddy, IIS, LiteSpeed, etc.) on setting custom error pages.
  4. Test: Trigger the corresponding errors on your website to ensure the custom pages are displayed correctly.

Customization

You can easily modify each error page:

Technology Used