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

fix: type orm not found exceptions return 404 #332

Merged
merged 1 commit into from
Oct 11, 2022

Conversation

microwavekonijn
Copy link
Member

TypeORM exceptions when an entity is not found result in a generic 500 response. I have added a filter so a 404 response is returned instead. This change does not affect the front-end as Axios will treat both 4xx and 5xx status codes the same, which is different then a normal 200 status code.

@microwavekonijn microwavekonijn added bug Something isn't working p3 Minor issues labels Oct 11, 2022
@microwavekonijn microwavekonijn self-assigned this Oct 11, 2022
@Maelstromeous Maelstromeous merged commit 5b9a295 into dev Oct 11, 2022
@Maelstromeous Maelstromeous deleted the fix/http-status-codes branch October 11, 2022 14:10
@Maelstromeous
Copy link
Member

Thanks @microwavekonijn!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working p3 Minor issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants