Skip to content

Include the error code when reporting ClientConnectionExceptions #2294

Description

@dc-andy

Feature description_

It would be useful for upstream systems to be able to automatically determine the type of error and react accordingly. e.g.

429 For Too Many Requests
Temporary error - Retry periodically

401 Unauthorized
Raise as a permanent error to be resolved by operator

This could be achieved by including the HTTP error code within ClientConnectionException.

I have raised a pull request to add and populate the code on ClientConnectionException here #2295

Currently the only way to determine the error type is to parse the message within the Exception - which may be subject to change in future.

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