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