Initializes an HTTP URL response object with a status code, protocol version, and response headers.
- iOS 5.0+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The URL from which the response was generated.
The HTTP status code to return (
404, for example). See RFC 2616 for details.
The version of the HTTP response as returned by the server. This is typically represented as "HTTP/1.1".
A dictionary representing the keys and values from the server’s response header.
HTTPURLResponse object or
nil if an error occurred during initialization.