Any way to get the response body during HTTP errors?
I asked this question on their github page and got an answer from cnoon: swift 2: if let data = response.data { let json = String(data: data, encoding: NSUTF8StringEncoding) print(“Failure Response: \(json)”) } swift 3: if let data = response.data { let json = String(data: data, encoding: String.Encoding.utf8) print(“Failure Response: \(json)”) } https://github.com/Alamofire/Alamofire/issues/1059 I just … Read more