AlexsLemonade / AlexsLemonade/refinebio-web
Refactor page components to handle 404 and 500 errors
Open
@nozomione is already working on this.
Since Feb 14, 2025.
Post QA
- Dominant language
- JavaScript
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
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 Found500 Internal Error504 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
404response when no resource is found. - Return a
500response 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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.