 
   public static var noPermissionsToReadFile: URLError.Code {
     return .noPermissionsToReadFile
+  }
+
+  @available(OSX, introduced: 10.5) @available(iOS, introduced: 2.0)
+  public static var dataLengthExceedsMaximum: URLError.Code {
+    return .dataLengthExceedsMaximum
   }
 
   public static var secureConnectionFailed: URLError.Code {


  public static var _nsErrorDomain: String { return NSURLErrorDomain }

  @objc public enum Code : Int, _ErrorCodeProtocol {
    public typealias _ErrorType = URLError

    case unknown = -1
    case cancelled = -999
    case badURL = -1000
    case timedOut = -1001
    case unsupportedURL = -1002
    case cannotFindHost = -1003
    case cannotConnectToHost = -1004
    case networkConnectionLost = -1005
    case dnsLookupFailed = -1006
    case httpTooManyRedirects = -1007
    case resourceUnavailable = -1008
    case notConnectedToInternet = -1009
    case redirectToNonExistentLocation = -1010
    case badServerResponse = -1011
    case userCancelledAuthentication = -1012
    case userAuthenticationRequired = -1013
    case zeroByteResource = -1014
    case cannotDecodeRawData = -1015
    case cannotDecodeContentData = -1016
    case cannotParseResponse = -1017
    case fileDoesNotExist = -1100
    case fileIsDirectory = -1101
    case noPermissionsToReadFile = -1102
    case secureConnectionFailed = -1200
    case serverCertificateHasBadDate = -1201
    case serverCertificateUntrusted = -1202
    case serverCertificateHasUnknownRoot = -1203
    case serverCertificateNotYetValid = -1204
    case clientCertificateRejected = -1205
    case clientCertificateRequired = -1206
    case cannotLoadFromNetwork = -2000
    case cannotCreateFile = -3000
    case cannotOpenFile = -3001
    case cannotCloseFile = -3002
    case cannotWriteToFile = -3003
    case cannotRemoveFile = -3004
    case cannotMoveFile = -3005
    case downloadDecodingFailedMidStream = -3006
    case downloadDecodingFailedToComplete = -3007

    @available(OSX, introduced: 10.7) @available(iOS, introduced: 3.0)
    case internationalRoamingOff = -1018

    @available(OSX, introduced: 10.7) @available(iOS, introduced: 3.0)
    case callIsActive = -1019

    @available(OSX, introduced: 10.7) @available(iOS, introduced: 3.0)
    case dataNotAllowed = -1020

    @available(OSX, introduced: 10.7) @available(iOS, introduced: 3.0)
    case requestBodyStreamExhausted = -1021

    @available(OSX, introduced: 10.10) @available(iOS, introduced: 8.0)
    static var backgroundSessionRequiresSharedContainer: Code {
      return Code(rawValue: -995)!
    }

    @available(OSX, introduced: 10.10) @available(iOS, introduced: 8.0)
    static var backgroundSessionInUseByAnotherProcess: Code {
      return Code(rawValue: -996)!
    }

    @available(OSX, introduced: 10.10) @available(iOS, introduced: 8.0)
    static var backgroundSessionWasDisconnected: Code {
      return Code(rawValue: -997)!
    }
  }
}


    return .cannotParseResponse
  }

  @available(OSX, introduced: 10.11) @available(iOS, introduced: 9.0)
  public static var appTransportSecurityRequiresSecureConnection: URLError.Code {
    return .appTransportSecurityRequiresSecureConnection
  }

  public static var fileDoesNotExist: URLError.Code {
    return .fileDoesNotExist
  }
