   }
 
   @available(OSX, introduced: 10.10) @available(iOS, introduced: 8.0)
+  public static var userActivityHandoffFailed: CocoaError.Code {
+    return CocoaError.Code(rawValue: 4608)
+  }
+
+  @available(OSX, introduced: 10.10) @available(iOS, introduced: 8.0)
+  public static var userActivityConnectionUnavailable: CocoaError.Code {
+    return CocoaError.Code(rawValue: 4609)
+  }
+
+  @available(OSX, introduced: 10.10) @available(iOS, introduced: 8.0)
+  public static var userActivityRemoteApplicationTimedOut: CocoaError.Code {
+    return CocoaError.Code(rawValue: 4610)
+  }
+
+  @available(OSX, introduced: 10.10) @available(iOS, introduced: 8.0)
+  public static var userActivityHandoffUserInfoTooLarge: CocoaError.Code {
+    return CocoaError.Code(rawValue: 4611)
+  }
+
+  @available(OSX, introduced: 10.11) @available(iOS, introduced: 9.0)
+  public static var coderReadCorrupt: CocoaError.Code {
+    return CocoaError.Code(rawValue: 4864)
+  }
+
+  @available(OSX, introduced: 10.11) @available(iOS, introduced: 9.0)
+  public static var coderValueNotFound: CocoaError.Code {
+    return CocoaError.Code(rawValue: 4865)
+  }
+}
+
+extension CocoaError {
+  @available(*, deprecated, renamed: "fileNoSuchFile")
+  public static var fileNoSuchFileError: CocoaError.Code {
+    return CocoaError.Code(rawValue: 4)
+  }
+  @available(*, deprecated, renamed: "fileLocking")
+  public static var fileLockingError: CocoaError.Code {
+    return CocoaError.Code(rawValue: 255)
+  }
+  @available(*, deprecated, renamed: "fileReadUnknown")
+  public static var fileReadUnknownError: CocoaError.Code {
+    return CocoaError.Code(rawValue: 256)
+  }
+  @available(*, deprecated, renamed: "fileReadNoPermission")
+  public static var fileReadNoPermissionError: CocoaError.Code {
+    return CocoaError.Code(rawValue: 257)
+  }
+  @available(*, deprecated, renamed: "fileReadInvalidFileName")
+  public static var fileReadInvalidFileNameError: CocoaError.Code {
+    return CocoaError.Code(rawValue: 258)
+  }
+  @available(*, deprecated, renamed: "fileReadCorruptFile")
+  public static var fileReadCorruptFileError: CocoaError.Code {
+    return CocoaError.Code(rawValue: 259)
+  }
+  @available(*, deprecated, renamed: "fileReadNoSuchFile")
+  public static var fileReadNoSuchFileError: CocoaError.Code {
+    return CocoaError.Code(rawValue: 260)
+  }
+  @available(*, deprecated, renamed: "fileReadInapplicableStringEncoding")
+  public static var fileReadInapplicableStringEncodingError: CocoaError.Code {
+    return CocoaError.Code(rawValue: 261)
+  }
+  @available(*, deprecated, renamed: "fileReadUnsupportedScheme")
+  public static var fileReadUnsupportedSchemeError: CocoaError.Code {
+    return CocoaError.Code(rawValue: 262)
+  }
+
+  @available(OSX, introduced: 10.5) @available(iOS, introduced: 2.0)
+  @available(*, deprecated, renamed: "fileReadTooLarge")
+  public static var fileReadTooLargeError: CocoaError.Code {
+    return CocoaError.Code(rawValue: 263)
+  }
+
+  @available(OSX, introduced: 10.5) @available(iOS, introduced: 2.0)
+  @available(*, deprecated, renamed: "fileReadUnknownStringEncoding")
+  public static var fileReadUnknownStringEncodingError: CocoaError.Code {
+    return CocoaError.Code(rawValue: 264)
+  }
+
+  @available(*, deprecated, renamed: "fileWriteUnknown")
+  public static var fileWriteUnknownError: CocoaError.Code {
+    return CocoaError.Code(rawValue: 512)
+  }
+
+  @available(*, deprecated, renamed: "fileWriteNoPermission")
+  public static var fileWriteNoPermissionError: CocoaError.Code {
+    return CocoaError.Code(rawValue: 513)
+  }
+
+  @available(*, deprecated, renamed: "fileWriteInvalidFileName")
+  public static var fileWriteInvalidFileNameError: CocoaError.Code {
+    return CocoaError.Code(rawValue: 514)
+  }
+
+  @available(OSX, introduced: 10.7) @available(iOS, introduced: 5.0)
+  @available(*, deprecated, renamed: "fileWriteFileExists")
+  public static var fileWriteFileExistsError: CocoaError.Code {
+    return CocoaError.Code(rawValue: 516)
+  }
+
+  @available(*, deprecated, renamed: "fileWriteInapplicableStringEncoding")
+  public static var fileWriteInapplicableStringEncodingError: CocoaError.Code {
+    return CocoaError.Code(rawValue: 517)
+  }
+
+  @available(*, deprecated, renamed: "fileWriteUnsupportedScheme")
+  public static var fileWriteUnsupportedSchemeError: CocoaError.Code {
+    return CocoaError.Code(rawValue: 518)
+  }
+
+  @available(*, deprecated, renamed: "fileWriteOutOfSpace")
+  public static var fileWriteOutOfSpaceError: CocoaError.Code {
+    return CocoaError.Code(rawValue: 640)
+  }
+
+  @available(OSX, introduced: 10.6) @available(iOS, introduced: 4.0)
+  @available(*, deprecated, renamed: "fileWriteVolumeReadOnly")
+  public static var fileWriteVolumeReadOnlyError: CocoaError.Code {
+    return CocoaError.Code(rawValue: 642)
+  }
+
+  @available(OSX, introduced: 10.11) @available(iOS, unavailable)
+  @available(*, deprecated, renamed: "fileManagerUnmountUnknown")
+  public static var fileManagerUnmountUnknownError: CocoaError.Code {
+    return CocoaError.Code(rawValue: 768)
+  }
+
+  @available(OSX, introduced: 10.11) @available(iOS, unavailable)
+  @available(*, deprecated, renamed: "fileManagerUnmountBusy")
+  public static var fileManagerUnmountBusyError: CocoaError.Code {
+    return CocoaError.Code(rawValue: 769)
+  }
+
+  @available(*, deprecated, renamed: "keyValueValidation")
+  public static var keyValueValidationError: CocoaError.Code {
+    return CocoaError.Code(rawValue: 1024)
+  }
+
+  @available(*, deprecated, renamed: "formatting")
+  public static var formattingError: CocoaError.Code {
+    return CocoaError.Code(rawValue: 2048)
+  }
+
+  @available(*, deprecated, renamed: "userCancelled")
+  public static var userCancelledError: CocoaError.Code {
+    return CocoaError.Code(rawValue: 3072)
+  }
+
+  @available(OSX, introduced: 10.8) @available(iOS, introduced: 6.0)
+  @available(*, deprecated, renamed: "featureUnsupported")
+  public static var featureUnsupportedError: CocoaError.Code {
+    return CocoaError.Code(rawValue: 3328)
+  }
+
+  @available(OSX, introduced: 10.5) @available(iOS, introduced: 2.0)
+  @available(*, deprecated, renamed: "executableNotLoadable")
+  public static var executableNotLoadableError: CocoaError.Code {
+    return CocoaError.Code(rawValue: 3584)
+  }
+
+  @available(OSX, introduced: 10.5) @available(iOS, introduced: 2.0)
+  @available(*, deprecated, renamed: "executableArchitectureMismatch")
+  public static var executableArchitectureMismatchError: CocoaError.Code {
+    return CocoaError.Code(rawValue: 3585)
+  }
+
+  @available(OSX, introduced: 10.5) @available(iOS, introduced: 2.0)
+  @available(*, deprecated, renamed: "executableRuntimeMismatch")
+  public static var executableRuntimeMismatchError: CocoaError.Code {
+    return CocoaError.Code(rawValue: 3586)
+  }
+
+  @available(OSX, introduced: 10.5) @available(iOS, introduced: 2.0)
+  @available(*, deprecated, renamed: "executableLoad")
+  public static var executableLoadError: CocoaError.Code {
+    return CocoaError.Code(rawValue: 3587)
+  }
+
+  @available(OSX, introduced: 10.5) @available(iOS, introduced: 2.0)
+  @available(*, deprecated, renamed: "executableLink")
+  public static var executableLinkError: CocoaError.Code {
+    return CocoaError.Code(rawValue: 3588)
+  }
+
+  @available(OSX, introduced: 10.6) @available(iOS, introduced: 4.0)
+  @available(*, deprecated, renamed: "propertyListReadCorrupt")
+  public static var propertyListReadCorruptError: CocoaError.Code {
+    return CocoaError.Code(rawValue: 3840)
+  }
+
+  @available(OSX, introduced: 10.6) @available(iOS, introduced: 4.0)
+  @available(*, deprecated, renamed: "propertyListReadUnknownVersion")
+  public static var propertyListReadUnknownVersionError: CocoaError.Code {
+    return CocoaError.Code(rawValue: 3841)
+  }
+
+  @available(OSX, introduced: 10.6) @available(iOS, introduced: 4.0)
+  @available(*, deprecated, renamed: "propertyListReadStream")
+  public static var propertyListReadStreamError: CocoaError.Code {
+    return CocoaError.Code(rawValue: 3842)
+  }
+
+  @available(OSX, introduced: 10.6) @available(iOS, introduced: 4.0)
+  @available(*, deprecated, renamed: "propertyListWriteStream")
+  public static var propertyListWriteStreamError: CocoaError.Code {
+    return CocoaError.Code(rawValue: 3851)
+  }
+
+  @available(OSX, introduced: 10.10) @available(iOS, introduced: 8.0)
+  @available(*, deprecated, renamed: "propertyListWriteInvalid")
+  public static var propertyListWriteInvalidError: CocoaError.Code {
+    return CocoaError.Code(rawValue: 3852)
+  }
+
+  @available(OSX, introduced: 10.9) @available(iOS, introduced: 7.0)
+  @available(*, deprecated, renamed: "ubiquitousFileUnavailable")
+  public static var ubiquitousFileUnavailableError: CocoaError.Code {
+    return CocoaError.Code(rawValue: 4353)
+  }
+
+  @available(OSX, introduced: 10.9) @available(iOS, introduced: 7.0)
+  @available(*, deprecated, renamed: "ubiquitousFileNotUploadedDueToQuota")
+  public static var ubiquitousFileNotUploadedDueToQuotaError: CocoaError.Code {
+    return CocoaError.Code(rawValue: 4354)
+  }
+
+  @available(OSX, introduced: 10.10) @available(iOS, introduced: 8.0)
+  @available(*, deprecated, renamed: "userActivityHandoffFailed")
   public static var userActivityHandoffFailedError: CocoaError.Code {
     return CocoaError.Code(rawValue: 4608)
   }
 
   @available(OSX, introduced: 10.10) @available(iOS, introduced: 8.0)
+  @available(*, deprecated, renamed: "userActivityConnectionUnavailable")
   public static var userActivityConnectionUnavailableError: CocoaError.Code {
     return CocoaError.Code(rawValue: 4609)
   }
 
   @available(OSX, introduced: 10.10) @available(iOS, introduced: 8.0)
+  @available(*, deprecated, renamed: "userActivityRemoteApplicationTimedOut")
   public static var userActivityRemoteApplicationTimedOutError: CocoaError.Code {
     return CocoaError.Code(rawValue: 4610)
   }
 
   @available(OSX, introduced: 10.10) @available(iOS, introduced: 8.0)
+  @available(*, deprecated, renamed: "userActivityHandoffUserInfoTooLarge")
   public static var userActivityHandoffUserInfoTooLargeError: CocoaError.Code {
     return CocoaError.Code(rawValue: 4611)
   }
 
   @available(OSX, introduced: 10.11) @available(iOS, introduced: 9.0)
+  @available(*, deprecated, renamed: "coderReadCorrupt")
   public static var coderReadCorruptError: CocoaError.Code {
     return CocoaError.Code(rawValue: 4864)
   }
 
   @available(OSX, introduced: 10.11) @available(iOS, introduced: 9.0)
+  @available(*, deprecated, renamed: "coderValueNotFound")
   public static var coderValueNotFoundError: CocoaError.Code {
     return CocoaError.Code(rawValue: 4865)
   }

    fatalError("unavailable accessor can't be called")
  }

  @available(*, unavailable, renamed: "ubiquitousFileUnavailableError")
  public static var UbiquitousFileUnavailableError: CocoaError.Code {
    fatalError("unavailable accessor can't be called")
  }

  @available(*, unavailable, renamed: "ubiquitousFileNotUploadedDueToQuotaError")
  public static var UbiquitousFileNotUploadedDueToQuotaError: CocoaError.Code {
    fatalError("unavailable accessor can't be called")
  }

  }

  @available(OSX, introduced: 10.9) @available(iOS, introduced: 7.0)
  public static var ubiquitousFileUnavailable: CocoaError.Code {
    return CocoaError.Code(rawValue: 4353)
  }

  @available(OSX, introduced: 10.9) @available(iOS, introduced: 7.0)
  public static var ubiquitousFileNotUploadedDueToQuota: CocoaError.Code {
    return CocoaError.Code(rawValue: 4354)
  }

