Yelp / bravado

Bravado is a python client library for Swagger 2.0 services
Other
604 stars 117 forks source link

Redirects should not be considered errors #455

Open mattdowdell opened 4 years ago

mattdowdell commented 4 years ago

At the moment, when an API returns a redirect, an exception is raised. This is contrary to the spec, i.e. RFC 7231, which considers 4XX and 5XX to be errors, but not 3XX. As such, the exceptions raised when such statuses are returned should be removed to be compliant with the spec.

Follows on from #449 and #454 where it was pointed out that this would be a breaking change.