Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

Non-200 responses treated as errors in client #33

Description

@bvwells

Non-200 responses are being treated as errors in generated clients, i.e.

	if resp.StatusCode != 200 {
		return nil, errors.New(resp.Status)
	}

It would be nice to handle other 2xx response codes as success, e.g. 202 Accepted.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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