Taylor Blau
40929cc7f0
lfsapi/errors.go: create a NewUnprocessableEntityError when appropriate
...
In the previous commit, we introduced a new type for detecting when the
server sent back an HTTP 422.
In this commit, let's use that and detect when we get a situation in
which:
res.StatusCode == 422
And create+return the new error appropriately.
2018-07-31 13:23:16 -05:00
risk danger olson
6cb4e249bd
Don't print doc url and request id for expected errors
2017-02-27 14:16:19 -07:00
risk danger olson
4bc7938220
lfsapi: unnecessary error wrapping
2017-02-24 17:00:50 -07:00
risk danger olson
e7de4391c0
locking: update to match finalized api docs
2017-02-02 09:54:41 -07:00
risk danger olson
b670b300f7
lfsapi: remove redundant 'Error' from the method name
2017-01-09 15:30:58 -07:00
risk danger olson
054ff3fe68
lfsapi: introduce error type with embedded HTTP Response
2017-01-09 13:49:54 -07:00
risk danger olson
3ea582bd93
lfsapi: expose DecodeJSON helper
2017-01-03 13:05:30 -07:00
risk danger olson
e1b4563815
Implement verify failure handling
2016-12-16 15:43:05 -07:00