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

All 400 Errors are Being Changed to 500 Errors Unexpectedly #5

Open
jihunleekr opened this issue Dec 5, 2023 · 0 comments
Open

All 400 Errors are Being Changed to 500 Errors Unexpectedly #5

jihunleekr opened this issue Dec 5, 2023 · 0 comments

Comments

@jihunleekr
Copy link

jihunleekr commented Dec 5, 2023

All 400 Errors are Being Changed to 500 Errors Unexpectedly

Expected Behaviour

Errors should be categorized correctly according to their status codes. 400 errors should remain as 400.

Current Behaviour

All 400 errors are being converted to 500 errors, which is misleading and incorrect.

Are you a GitHub Sponsor (Yes/No?)

No

List All Possible Solutions and Workarounds

  • Do not use 400 errors.

Which Solution Do You Recommend?

Steps to Reproduce (for bugs)

return context.status(400).fail('Bad request')

Context

This issue is causing confusion in understanding the true nature of the errors and impedes proper troubleshooting.

Your Environment

It occurs in all environments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant