Our api server gives a 422 response when validating request params:
{
"errors": [{ "detail": "Missing field: anon_id" }]
}
However, Get only supplies the error code: Response status code was unacceptable: 422 via APIError
.unacceptableStatusCode(let statusCode)
How can we hook into the actual error response for logging and (sometimes) showing to the user?
Our api server gives a 422 response when validating request params:
{ "errors": [{ "detail": "Missing field: anon_id" }] }However,
Getonly supplies the error code:Response status code was unacceptable: 422viaAPIErrorHow can we hook into the actual error response for logging and (sometimes) showing to the user?