Skip to content
This repository has been archived by the owner on Oct 19, 2018. It is now read-only.

Add fallback node worker for error pages #8

Open
Kaptard opened this issue Aug 23, 2017 · 1 comment
Open

Add fallback node worker for error pages #8

Kaptard opened this issue Aug 23, 2017 · 1 comment

Comments

@Kaptard
Copy link
Member

Kaptard commented Aug 23, 2017

Worker would simply have endpoints for /404, /503, etc. The API would automatically redirect to the according page. If no response from fallback worker arrives (i.e. non set up or actually too busy), display original raw error instead.

@Kaptard
Copy link
Member Author

Kaptard commented Apr 16, 2018

Don't use any fallback worker, just write some API middleware that modifies the response object and checks for error codes. Should add an example to docs though.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant