Skip to content

feature request: provide the response body with UnexpectedStatusCode error #1105

Open
@justenwalker

Description

@justenwalker

Description

When the API returns a response that isn't one of the expected response codes, the generated code returns

return res, validate.UnexpectedStatusCode(resp.StatusCode)

However, this is nearly useless because it only contains the status code. There is no way to look at the body of the request to debug without editing the generated code and seeing what response was given.

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