Skip to content

Set error codes on all errors #1711

Closed
Closed
@p-bakker

Description

@p-bakker

What would you like to discuss?

On HTTPErrors the statusCode of the response is not exposed directly. You have to go through the HTTPError.response to get the statusCode

I would've expected the statusCode to be directly exposed on the HTTPError or otherwise set as the value of the code property, but neither is true

Is that as expected or is this a bug?

Checklist

  • I have read the documentation.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions