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. |
Beta Was this translation helpful? Give feedback.
1 reply
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
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/caralv27s
And 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?
Beta Was this translation helpful? Give feedback.
All reactions