 }
 
 /// Describes errors in the URL error domain.
-public struct NSURLError : _BridgedStoredNSError {
+public struct URLError : _BridgedStoredNSError {
   public let _nsError: NSError
 
   public init(_nsError error: NSError) {

  }
}

public extension NSURLError {
  public static var unknown: NSURLError.Code {
    return .unknown
  }

  public static var cancelled: NSURLError.Code {
    return .cancelled
  }

  public static var badURL: NSURLError.Code {
    return .badURL
  }

  public static var timedOut: NSURLError.Code {
    return .timedOut
  }

  public static var unsupportedURL: NSURLError.Code {
    return .unsupportedURL
  }

  public static var cannotFindHost: NSURLError.Code {
    return .cannotFindHost
  }

  public static var cannotConnectToHost: NSURLError.Code {
    return .cannotConnectToHost
  }

  public static var networkConnectionLost: NSURLError.Code {
    return .networkConnectionLost
  }

  public static var dnsLookupFailed: NSURLError.Code {
    return .dnsLookupFailed
  }

  public static var httpTooManyRedirects: NSURLError.Code {
    return .httpTooManyRedirects
  }

  public static var resourceUnavailable: NSURLError.Code {
    return .resourceUnavailable
  }

  public static var notConnectedToInternet: NSURLError.Code {
    return .notConnectedToInternet
  }

  public static var redirectToNonExistentLocation: NSURLError.Code {
    return .redirectToNonExistentLocation
  }

  public static var badServerResponse: NSURLError.Code {
    return .badServerResponse
  }

  public static var userCancelledAuthentication: NSURLError.Code {
    return .userCancelledAuthentication
  }

  public static var userAuthenticationRequired: NSURLError.Code {
    return .userAuthenticationRequired
  }

  public static var zeroByteResource: NSURLError.Code {
    return .zeroByteResource
  }

  public static var cannotDecodeRawData: NSURLError.Code {
    return .cannotDecodeRawData
  }

  public static var cannotDecodeContentData: NSURLError.Code {
    return .cannotDecodeContentData
  }

  public static var cannotParseResponse: NSURLError.Code {
    return .cannotParseResponse
  }

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

  public static var fileIsDirectory: NSURLError.Code {
    return .fileIsDirectory
  }

  public static var noPermissionsToReadFile: NSURLError.Code {
    return .noPermissionsToReadFile
  }

  public static var secureConnectionFailed: NSURLError.Code {
    return .secureConnectionFailed
  }

  public static var serverCertificateHasBadDate: NSURLError.Code {
    return .serverCertificateHasBadDate
  }

  public static var serverCertificateUntrusted: NSURLError.Code {
    return .serverCertificateUntrusted
  }

  public static var serverCertificateHasUnknownRoot: NSURLError.Code {
    return .serverCertificateHasUnknownRoot
  }

  public static var serverCertificateNotYetValid: NSURLError.Code {
    return .serverCertificateNotYetValid
  }

  public static var clientCertificateRejected: NSURLError.Code {
    return .clientCertificateRejected
  }

  public static var clientCertificateRequired: NSURLError.Code {
    return .clientCertificateRequired
  }

  public static var cannotLoadFromNetwork: NSURLError.Code {
    return .cannotLoadFromNetwork
  }

  public static var cannotCreateFile: NSURLError.Code {
    return .cannotCreateFile
  }

  public static var cannotOpenFile: NSURLError.Code {
    return .cannotOpenFile
  }

  public static var cannotCloseFile: NSURLError.Code {
    return .cannotCloseFile
  }

  public static var cannotWriteToFile: NSURLError.Code {
    return .cannotWriteToFile
  }

  public static var cannotRemoveFile: NSURLError.Code {
    return .cannotRemoveFile
  }

  public static var cannotMoveFile: NSURLError.Code {
    return .cannotMoveFile
  }

  public static var downloadDecodingFailedMidStream: NSURLError.Code {
    return .downloadDecodingFailedMidStream
  }

  public static var downloadDecodingFailedToComplete: NSURLError.Code {
    return .downloadDecodingFailedToComplete
  }

  @available(OSX, introduced: 10.7) @available(iOS, introduced: 3.0)
  public static var internationalRoamingOff: NSURLError.Code {
    return .internationalRoamingOff
  }

  @available(OSX, introduced: 10.7) @available(iOS, introduced: 3.0)
  public static var callIsActive: NSURLError.Code {
    return .callIsActive
  }

  @available(OSX, introduced: 10.7) @available(iOS, introduced: 3.0)
  public static var dataNotAllowed: NSURLError.Code {
    return .dataNotAllowed
  }

  @available(OSX, introduced: 10.7) @available(iOS, introduced: 3.0)
  public static var requestBodyStreamExhausted: NSURLError.Code {
    return .requestBodyStreamExhausted
  }


  }
}

public extension URLError {
  private var _userInfo: [NSObject : AnyObject] {
    return (self as NSError).userInfo
  }
