Client specified an invalid argument. Note that this differs from FailedPrecondition.
InvalidArgument indicates arguments that are problematic regardless of the state of the
system (e.g., an invalid field name).
Deadline expired before operation could complete. For operations that change the state of the
system, this error may be returned even if the operation has completed successfully. For
example, a successful response from a server could have been delayed long enough for the
deadline to expire.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-11 UTC."],[],[],null,["# FirebaseFirestore Framework Reference\n\n_ErrorType\n==========\n\n typealias FirestoreErrorCode.Code._ErrorType = FirestoreErrorCode\n\nError codes used by Cloud Firestore.\n- `\n ``\n ``\n `\n\n ### [OK](#/c:@E@FIRFirestoreErrorCode@FIRFirestoreErrorCodeOK)\n\n `\n ` \n The operation completed successfully. `NSError` objects will never have a code with this\n value. \n\n #### Declaration\n\n Swift \n\n case OK = 0\n\n- `\n ``\n ``\n `\n\n ### [cancelled](#/c:@E@FIRFirestoreErrorCode@FIRFirestoreErrorCodeCancelled)\n\n `\n ` \n The operation was cancelled (typically by the caller). \n\n #### Declaration\n\n Swift \n\n case cancelled = 1\n\n- `\n ``\n ``\n `\n\n ### [unknown](#/c:@E@FIRFirestoreErrorCode@FIRFirestoreErrorCodeUnknown)\n\n `\n ` \n Unknown error or an error from a different error domain. \n\n #### Declaration\n\n Swift \n\n case unknown = 2\n\n- `\n ``\n ``\n `\n\n ### [invalidArgument](#/c:@E@FIRFirestoreErrorCode@FIRFirestoreErrorCodeInvalidArgument)\n\n `\n ` \n Client specified an invalid argument. Note that this differs from FailedPrecondition.\n InvalidArgument indicates arguments that are problematic regardless of the state of the\n system (e.g., an invalid field name). \n\n #### Declaration\n\n Swift \n\n case invalidArgument = 3\n\n- `\n ``\n ``\n `\n\n ### [deadlineExceeded](#/c:@E@FIRFirestoreErrorCode@FIRFirestoreErrorCodeDeadlineExceeded)\n\n `\n ` \n Deadline expired before operation could complete. For operations that change the state of the\n system, this error may be returned even if the operation has completed successfully. For\n example, a successful response from a server could have been delayed long enough for the\n deadline to expire. \n\n #### Declaration\n\n Swift \n\n case deadlineExceeded = 4\n\n- `\n ``\n ``\n `\n\n ### [notFound](#/c:@E@FIRFirestoreErrorCode@FIRFirestoreErrorCodeNotFound)\n\n `\n ` \n Some requested document was not found. \n\n #### Declaration\n\n Swift \n\n case notFound = 5\n\n- `\n ``\n ``\n `\n\n ### [alreadyExists](#/c:@E@FIRFirestoreErrorCode@FIRFirestoreErrorCodeAlreadyExists)\n\n `\n ` \n Some document that we attempted to create already exists. \n\n #### Declaration\n\n Swift \n\n case alreadyExists = 6\n\n- `\n ``\n ``\n `\n\n ### [permissionDenied](#/c:@E@FIRFirestoreErrorCode@FIRFirestoreErrorCodePermissionDenied)\n\n `\n ` \n The caller does not have permission to execute the specified operation. \n\n #### Declaration\n\n Swift \n\n case permissionDenied = 7\n\n- `\n ``\n ``\n `\n\n ### [resourceExhausted](#/c:@E@FIRFirestoreErrorCode@FIRFirestoreErrorCodeResourceExhausted)\n\n `\n ` \n Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system\n is out of space. \n\n #### Declaration\n\n Swift \n\n case resourceExhausted = 8\n\n- `\n ``\n ``\n `\n\n ### [failedPrecondition](#/c:@E@FIRFirestoreErrorCode@FIRFirestoreErrorCodeFailedPrecondition)\n\n `\n ` \n Operation was rejected because the system is not in a state required for the operation's\n execution. \n\n #### Declaration\n\n Swift \n\n case failedPrecondition = 9\n\n- `\n ``\n ``\n `\n\n ### [aborted](#/c:@E@FIRFirestoreErrorCode@FIRFirestoreErrorCodeAborted)\n\n `\n ` \n The operation was aborted, typically due to a concurrency issue like transaction aborts, etc. \n\n #### Declaration\n\n Swift \n\n case aborted = 10\n\n- `\n ``\n ``\n `\n\n ### [outOfRange](#/c:@E@FIRFirestoreErrorCode@FIRFirestoreErrorCodeOutOfRange)\n\n `\n ` \n Operation was attempted past the valid range. \n\n #### Declaration\n\n Swift \n\n case outOfRange = 11\n\n- `\n ``\n ``\n `\n\n ### [unimplemented](#/c:@E@FIRFirestoreErrorCode@FIRFirestoreErrorCodeUnimplemented)\n\n `\n ` \n Operation is not implemented or not supported/enabled. \n\n #### Declaration\n\n Swift \n\n case unimplemented = 12\n\n- `\n ``\n ``\n `\n\n ### [internal](#/c:@E@FIRFirestoreErrorCode@FIRFirestoreErrorCodeInternal)\n\n `\n ` \n Internal errors. Means some invariants expected by underlying system has been broken. If you\n see one of these errors, something is very broken. \n\n #### Declaration\n\n Swift \n\n case `internal` = 13\n\n- `\n ``\n ``\n `\n\n ### [unavailable](#/c:@E@FIRFirestoreErrorCode@FIRFirestoreErrorCodeUnavailable)\n\n `\n ` \n The service is currently unavailable. This is a most likely a transient condition and may be\n corrected by retrying with a backoff. \n\n #### Declaration\n\n Swift \n\n case unavailable = 14\n\n- `\n ``\n ``\n `\n\n ### [dataLoss](#/c:@E@FIRFirestoreErrorCode@FIRFirestoreErrorCodeDataLoss)\n\n `\n ` \n Unrecoverable data loss or corruption. \n\n #### Declaration\n\n Swift \n\n case dataLoss = 15\n\n- `\n ``\n ``\n `\n\n ### [unauthenticated](#/c:@E@FIRFirestoreErrorCode@FIRFirestoreErrorCodeUnauthenticated)\n\n `\n ` \n The request does not have valid authentication credentials for the operation. \n\n #### Declaration\n\n Swift \n\n case unauthenticated = 16"]]