In the documentation for NSURLErrorDomain errors the description for NSURLErrorBadServerResponse is listed as:
Returned when the URL Loading system receives bad data from the server.
This is equivalent to the “500 Server Error” message sent by HTTP servers.
Are there other NSURLErrorDomain errors with equivalent HTTP status codes? For example, is NSURLErrorTimedOut equivalent to 408 Request Timeout?
Those values are defined in NSURLError.h. If you type NSURLErrorDomain
into Spotlight searchon your Mac, it will find respective file somewhere, in my case inside /Library/Developer/CommandLineTools/SDKs/..
.
Updated URL for the URL Loading System Error Codes on Apple's Developer Site: https://developer.apple.com/documentation/foundation/1508628-url_loading_system_error_codes?language=occ
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With