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

Non-200 responses treated as errors in client #33

Open
bvwells opened this issue Oct 20, 2020 · 0 comments
Open

Non-200 responses treated as errors in client #33

bvwells opened this issue Oct 20, 2020 · 0 comments

Comments

@bvwells
Copy link
Contributor

bvwells commented Oct 20, 2020

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant