Error Codes and Types

Error CodeMeaning
400Indicates that the server cannot process the request due to a malformed request.
401Indicates that the request has not been completed due to its lack of valid authentication credentials for the requested resource.
403Indicates that the server understands the request but the provided credentials do not have sufficient authorizations on the given resource.
404Indicates that the requested resource does not exist.
409Indicates a request conflict with the current state of the target resource. This can happen when trying to create a resource that already exists.
500Indicates that the server encountered an unexpected condition that prevented it from fulfilling the request.
501Indicates that the server does not support the functionality required to fulfill the request.
Error TypeMeaning
ALREADY_EXISTSThe resource with the provided ID already exists in the system.
FAILED_PRECONDITIONThe operation was rejected because the system is not in a state required for the operation's execution.
INTERNALInternal error.
INVALID_ARGUMENTThe caller specified an invalid argument. Note that this differs from FAILED_PRECONDITION. INVALID_ARGUMENT indicates arguments that are problematic regardless of the state of the system (e.g., a malformed file name).
NOT_FOUNDThe given ID does not correlate to an existing resource in the system.
OUT_OF_RANGEThe operation was attempted past the valid range.
UNIMPLEMENTEDThe operation is not implemented or is not supported/configured in this service.
PERMISSION_DENIEDThe caller does not have permission to execute the specified operation.
UNAUTHENTICATEDThe request does not have valid authentication credentials for the operation.