AFError_ResponseValidationFailureReason - SwiftDocOrg/Alamofire GitHub Wiki
AFError.ResponseValidationFailureReason
The underlying reason the .responseValidationFailed error occurred.
public enum ResponseValidationFailureReason
Enumeration Cases
dataFileNil
The data file containing the server response did not exist.
case dataFileNil
dataFileReadFailed
The data file containing the server response at the associated URL could not be read.
case dataFileReadFailed(at: URL)
missingContentType
The response did not contain a Content-Type and the acceptableContentTypes provided did not contain a
wildcard type.
case missingContentType(acceptableContentTypes: [String])
unacceptableContentType
The response Content-Type did not match any type in the provided acceptableContentTypes.
case unacceptableContentType(acceptableContentTypes: [String], responseContentType: String)
unacceptableStatusCode
The response status code was not acceptable.
case unacceptableStatusCode(code: Int)
customValidationFailed
Custom response validation failed due to the associated Error.
case customValidationFailed(error: Error)