ResponseValidationFailureReason
public enum ResponseValidationFailureReason
The underlying reason the response validation error occurred.
- dataFileNil: The data file containing the server response did not exist.
- dataFileReadFailed: The data file containing the server response could not be read.
- missingContentType: The response did not contain a
Content-Typeand theacceptableContentTypesprovided did not contain wildcard type. - unacceptableContentType: The response
Content-Typedid not match any type in the providedacceptableContentTypes. - unacceptableStatusCode: The response status code was not acceptable.
-
Declaration
Swift
case dataFileNil -
Declaration
Swift
case dataFileReadFailed(at: URL) -
Declaration
Swift
case missingContentType(acceptableContentTypes: [String]) -
Declaration
Swift
case unacceptableContentType(acceptableContentTypes: [String], responseContentType: String) -
Declaration
Swift
case unacceptableStatusCode(code: Int)
ResponseValidationFailureReason Enumeration Reference