Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

AFError_ResponseValidationFailureReason

mattt edited this page Sep 18, 2020 · 2 revisions

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)
Types
Protocols
Global Typealiases
Clone this wiki locally