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

Altering the 500 http return status for context canceled #982

Open
ibevilinc opened this issue Mar 11, 2025 · 0 comments
Open

Altering the 500 http return status for context canceled #982

ibevilinc opened this issue Mar 11, 2025 · 0 comments
Labels

Comments

@ibevilinc
Copy link

I'm aware the context canceled means the client connection was closed, but is there a way to alter the 500 status code to something else in those circumstances? We're attempting to configure NOC alerts for when the downstream endpoint service(s) are having problems, but these context cancelled 500s are introducing false positives such that the alert isn't currently useful. Being able to use a different status code for these would help in differentiating service failures and those when the client connection is bad; is there any way to accomplish this?

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

No branches or pull requests

1 participant