StatusCode.msg

Overview

StatusCode.msg defines status code constants equivalent to the gRPC API status codes. These constants are used with StatusResponse.msg to report the outcome of service calls in a way that is compatible with the Cartographer gRPC interface.

Constants

Constant

Value

Meaning

OK

0

The call succeeded.

CANCELLED

1

The call was cancelled.

UNKNOWN

2

An unknown error occurred.

INVALID_ARGUMENT

3

A client-supplied argument was invalid.

DEADLINE_EXCEEDED

4

The call exceeded its deadline.

NOT_FOUND

5

The requested entity was not found.

ALREADY_EXISTS

6

An entity that should not exist was found.

PERMISSION_DENIED

7

The caller lacks permission.

RESOURCE_EXHAUSTED

8

A resource quota was exceeded.

FAILED_PRECONDITION

9

The system was not in the required state.

ABORTED

10

The operation was aborted.

OUT_OF_RANGE

11

An argument was out of range.

UNIMPLEMENTED

12

The operation is not implemented.

INTERNAL

13

An internal error occurred.

UNAVAILABLE

14

The service is currently unavailable.

DATA_LOSS

15

Unrecoverable data loss occurred.

Usage

  • The constants mirror the gRPC API status codes documented at the Google Maps Booking gRPC reference.

  • StatusResponse.code holds one of these values to indicate the outcome of a service call.