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

feat: Add 502 error when upstream unavailable #215

Merged

Conversation

xkr47
Copy link
Contributor

@xkr47 xkr47 commented Nov 3, 2024

When upstream server does not respond, 502 is imho a much better response than 500.

@junkurihara
Copy link
Owner

Hi @xkr47

I see. This looks reasonable as explained in MDN https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#server_error_responses

Thanks!

@junkurihara junkurihara merged commit 6db1227 into junkurihara:develop Nov 5, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants