Moya.Error/Swift How to get the response body of an error

Viewed 891

I already asked this question but my wordings were poor.

Assuming my API response code is 404, My goal is to get the JSON response body of that error API. Sure I can get the response code, but how about the response body?

0 Answers
Related