Skip to content

Show nice error pages for proxy errors #117

Open
@jankeromnes

Description

@jankeromnes

The web app https://janitor.technology already has a very basic 404 page, e.g. https://janitor.technology/no/such/page.html

However, proxy servers (i.e. Docker container hosts) like https://moz1.janitor.technology use a variety of error codes, but currently send empty HTML responses (using request.end()) along with them. This makes error cases hard to understand for users (because they only see a blank page, and the error code is only visible in the browser's devtools), e.g. https://moz1.janitor.technology/0000000000000000/0000/oops.html

Instead, it would be nice to show explicit error pages (beautiful but very simple, with helpful explanations of what the problem might be, but without leaking internal errors). The following error cases need pages:

Replying with actual web content can be done by adding new HTML template routes to /lib/routes.js.

@nt1m would you be interested in taking on this issue?

Note: This could be an opportunity to add new web pages that don't use Bootstrap, see also #113.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions