humphd / humphd/next

Create a 500 error page function in html-formatter for general errors

Open
#111 0 comments 0 reactions 0 assignees View on GitHub
server
Dominant language
JavaScript
Stars
14
Forks
5
PR merge metrics
No merged PRs in 30d

Description

When the Service Worker routes need to error (e.g., in a `catch`), we need some logic to create a proper error page. For example, with `err.code === 'ENOENT'` we should format a 404 page and return that. With other types of errors we might do some other page to indicate a problem, and in the general case, we need a custom 500 page, which might also print some info to help diagnose.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.