Skip to content

Error handling fixes/improvements

Choose a tag to compare

@rgalanakis rgalanakis released this 18 Jan 03:09
· 2 commits to master since this release

Handle 'errors' with 204 and 304 response codes

Programmers can use api.Error with 204 and 304 status codes,
which are not errors per se but still logically valid.

In these cases we must still adhere to the HTTP spec
and return an empty body.

Full Changelog: v2.1.1...v2.1.2