Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom 40x Error Page? #102

Closed
tuxmea opened this issue Nov 3, 2022 · 0 comments · Fixed by #114
Closed

Custom 40x Error Page? #102

tuxmea opened this issue Nov 3, 2022 · 0 comments · Fixed by #114
Assignees
Labels
enhancement New feature or request

Comments

@tuxmea
Copy link
Member

tuxmea commented Nov 3, 2022

Static public error pages.
No need to be 100% identical to HDM web UI.
More important: where should a user look for data errors.

HTTP error codes:

  • 422 - rails default for API results (unprocessible entity)
  • 404 - not found - e.g. typo in URL
    • short message: check the URL
    • home button
  • 500 - internal server error
    • NIL yaml data
    • link to issue on github
    • hint to check logfile
    • home button
  • 403 - no auth, not privileged/authorized
    • hint: not logged in, user gets admin URL, general permissions
    • home button
@tuxmea tuxmea added the enhancement New feature or request label Nov 3, 2022
oneiros added a commit that referenced this issue Dec 8, 2022
The 404 and 500 pages have a new design in line with the
regular layout of the app, but inlining all css and images,
so they are self-contained.

In case of a CanCanCan access violation, a 403 page is now
being rendered, that matches those other two error pages.
tuxmea pushed a commit that referenced this issue Dec 8, 2022
The 404 and 500 pages have a new design in line with the
regular layout of the app, but inlining all css and images,
so they are self-contained.

In case of a CanCanCan access violation, a 403 page is now
being rendered, that matches those other two error pages.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants