Skip to content

Altering the 500 http return status for context canceled #982

@ibevilinc

Description

@ibevilinc

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions