Skip to content

Add a Custom 500 Server Error Page (Enhancement) #753

Description

@Adithyakp86

Description

The project currently has a custom 404.js page for "Not Found" errors, which is great! However, we are missing a custom 500.js page. If the server encounters an unexpected error, users will see the default Next.js server error page, which breaks the immersion and design consistency of HEALCONNECT.

Expected Behavior

When a server-side error occurs, the user should be redirected to a custom 500 error page that matches the theme of HEALCONNECT. It should include a friendly error message and a button to return to the Home page or Dashboard.

Tasks

  • Create a pages/500.js file.
  • Design the 500 page to be consistent with the 404.js styling and overall branding.
  • Include an illustration/icon, a user-friendly error message, and a "Go Back Home" button.
  • Ensure the page looks good on both Light and Dark modes.
  • Ensure the page is fully responsive.

Tech Stack

  • Next.js
  • Tailwind CSS / SCSS

Additional Context

You can reference the existing pages/404.js to see how the layout and styling are currently structured.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions