GCP Error Codes

Look up Google Cloud API error codes with status, message and troubleshooting notes.

Searchable reference for the 17 canonical Google Cloud gRPC status codes (google.rpc.Code) with their HTTP mappings, meanings and per-code troubleshooting steps. Runs entirely in your browser.

How many canonical GCP error codes are there?

There are 17, numbered 0 to 16, defined by google.rpc.Code (the same set as gRPC status codes). Code 0 is OK and the rest signal specific failure conditions used consistently across Google Cloud APIs.

This is a searchable reference for the canonical Google Cloud error codes — the 17 gRPC status codes (google.rpc.Code 0–16) that every Google Cloud API returns. It maps each code to the HTTP status a REST client receives and gives a concrete troubleshooting note, so you can move quickly from a raw error to a fix.

How it works

Google Cloud APIs standardise on the gRPC status model. Every error carries a numeric code from 0 (OK) to 16 (UNAUTHENTICATED), a human-readable message, and optional details. REST callers receive the same condition mapped to an HTTP status — for example PERMISSION_DENIED (7) becomes HTTP 403 and RESOURCE_EXHAUSTED (8) becomes HTTP 429. The tool lets you search by the numeric code, the symbolic name, the HTTP status, or any keyword in the description, and shows the mapping plus a remediation hint for each one.

How to read the codes

Group the codes by what they tell you to do. Client-side fixes: INVALID_ARGUMENT, FAILED_PRECONDITION, OUT_OF_RANGE, NOT_FOUND, ALREADY_EXISTS. Auth and policy: UNAUTHENTICATED, PERMISSION_DENIED. Backpressure and retry: RESOURCE_EXHAUSTED, UNAVAILABLE, DEADLINE_EXCEEDED, ABORTED. Server faults: INTERNAL, UNKNOWN, DATA_LOSS.

Example

A request returns the following — the code tells you exactly what to do:

{
  "error": {
    "code": 429,
    "status": "RESOURCE_EXHAUSTED",
    "message": "Quota exceeded for quota metric 'Requests'"
  }
}

Here HTTP 429 maps to RESOURCE_EXHAUSTED (8): back off and retry, or request a quota increase. Everything in this tool runs in your browser; nothing is uploaded.