Open chadpod opened 7 years ago
Another Issue touching on it here:
https://github.com/Alamofire/Alamofire/issues/1673
"The reason the 204 status call works is that the responseJSON handler has logic to handle a 204 or 205 gracefully without failing. They are special HTTP status codes that do not return data so we have special logic in Alamofire to handle them in the default response handlers."
Hi, Is there any update or way of doing this in "AlamofireObjectMapper"?
The default AlamoFire response handlers don't error out when encountering an empty response body and a 204 (or 205 status code). Does AlamofireObjectMapper handle this differently for some reason (it seems to error out with 'ObjectMapper failed to serialize response.')? Here is an Issue that touches on how they handle it:
https://github.com/Alamofire/Alamofire/issues/1813