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

Better error status codes #23

Closed
RangerMauve opened this issue Nov 14, 2023 · 0 comments
Closed

Better error status codes #23

RangerMauve opened this issue Nov 14, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@RangerMauve
Copy link
Contributor

We should go through everywhere where we throw new Error as well as where we might be catching errors from libraries and instead throw errors from the http-errors module with appropriate codes like 409 or 400 or 500.

https://www.npmjs.com/package/http-errors

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
Status: Done
Development

No branches or pull requests

2 participants