Client: handle 409 HTTP code #132

Merged
lunny merged 1 commits from unknown repository into master 2019-01-27 09:51:09 +00:00
Owner

Author: @noerw

This is helpful, as POST /api/v1/releases returns no HTTP body for a 409 request,
eg when there already is a release for the specified tag.

The underlying problem is bigger:
The Client cannot handle error responses which do not contain a valid JSON body.
I tried to solve it by still printing a usable error message instead of a JSON parsing error

Author: @noerw This is helpful, as `POST /api/v1/releases` returns no HTTP body for a 409 request, eg when there already is a release for the specified `tag`. The underlying problem is bigger: The Client cannot handle error responses which do not contain a valid JSON body. I tried to solve it by still printing a usable error message instead of a JSON parsing error
Sign in to join this conversation.
No description provided.