Repository navigation
Replies: 1 comment 1 reply
|
Yes, you can use delegate's client(_:validateResponse:data:task:) to parse an error and throw instead of the default one. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Is there a way to get the error response
For example if we are using the github api
The end point is
https://api.github.com/users/caralv27sAnd the error response is the following
{ "message": "Not Found", "documentation_url": "https://docs.github.com/rest/reference/users#get-a-user" }how can I grab that error response?
All reactions