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

HOFF-594 Create 500 error page (Internal Server Error) #435

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TemitopeAyokuHO
Copy link

What

HOFF-594- HTTP Error 500 (Internal Server Error) Error Page

Why

To display an error page to users, which follows the Government Design Standard (GDS)

How

  • Created a 500 error page in the view folder 500.html, this page render the content

  • Added few line to capture if status code is 500 (UNKNOWN or INTERNAL_SERVER_ERROR) in the Middleware/errors.js file

  • Added text in errors.json file which will be used to render error messages

Testing

Tested locally

@TemitopeAyokuHO TemitopeAyokuHO force-pushed the HOFF-594-HTTP-Error-500-Internal-Server-Error branch from 0c3fe64 to 6515d86 Compare March 21, 2024 20:46
- Created a 500 error page in the view folder 500.html, this page render the content

- Added few line to capture if status code is 500 (UNKNOWN or INTERNAL_SERVER_ERROR) in the Middleware/errors.js file

- Added text in errors.json file which will be used to render error messages
@TemitopeAyokuHO TemitopeAyokuHO force-pushed the HOFF-594-HTTP-Error-500-Internal-Server-Error branch from 6515d86 to a316c52 Compare April 2, 2024 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant