Skip to content

Refactor page components to handle 404 and 500 errors #462

Description

@nozomione

Context

We've implemented error handling at both the app level and the page level.

At the app level, we handle the following errors:

  • 404 Not Found
  • 500 Internal Error
  • 504 Gateway Timeout

Currently, at the page level, we only handle 404 Not Found.

Problem or idea

We want to refactor the page components to handle both 404 and 500 errors.

The changes should be as follows:

  • Return a 404 response when no resource is found.
  • Return a 500 response otherwise

Solution or next step

Update the following page components to handle 404 and 500 errors within getServerSideProps:

  • pages/compendia/
  • pages/dataset/
  • pages/experiments/
  • pages/search

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions