Skip to content

some 2xx codes considered error responses #35

@mithodin

Description

@mithodin

OpErrorType consider only 200 and 201 as "successful" responses (see

type _OpErrorType<T> = {
), when according to the HTTP spec, all 2xx status codes signify success. This becomes a problem e.g. for a DELETE request, where a success usually returns status 204 (e.g. https://github.com/OAI/OpenAPI-Specification/blob/main/examples/v3.0/petstore-expanded.json#L158)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions