Skip to content

status field missing from AxiosError #6561

@quangloc99

Description

@quangloc99

Summary

In the Javascript implementation of AxiosError, the status is only attached to the toJson, but not in the AxiosError itself. However, in the type declaration of AxiosError, there is status?: number field. Because of this, I have accidentally misused it for quite a while, as it is more obvious and direct than error.response.status.

The PR #5331 seems to already fix this issue, and it was even approved. But it was not merged. Can axios team merge this, or there is something else that the PR need to resolve?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions