Last active
October 25, 2021 04:22
-
-
Save syuji-higa/b900f189da6752a637139abefe05f79b to your computer and use it in GitHub Desktop.
OpenAPI 3.0 gRPC Error Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 400 Status Code | |
BadRequestStatusCode: | |
type: string | |
enum: # gRPC Status Code | |
- INVALID_ARGUMENT | |
- FAILED_PRECONDITION | |
- OUT_OF_RANGE | |
# 401 Status Code | |
UnauthorizedStatusCode: | |
type: string | |
enum: # gRPC Status Code | |
- UNAUTHENTICATED | |
# 403 Status Code | |
ForbiddenStatusCode: | |
type: string | |
enum: # gRPC Status Code | |
- PERMISSION_DENIED | |
# 404 Status Code | |
NotFoundStatusCode: | |
type: string | |
enum: # gRPC Status Code | |
- NOT_FOUND | |
# 409 Status Code | |
ConflictStatusCode: | |
type: string | |
enum: # gRPC Status Code | |
- ALREADY_EXISTS | |
- ABORTED | |
# 429 Status Code | |
TooManyRequestsStatusCode: | |
type: string | |
enum: # gRPC Status Code | |
- RESOURCE_EXHAUSTED | |
# 499 Status Code | |
ClientClosedRequestStatusCode: | |
type: string | |
enum: # gRPC Status Code | |
- CANCELLED | |
# 500 Status Code | |
InternalServerStatusCode: | |
type: string | |
enum: # gRPC Status Code | |
- UNKNOWN | |
- INTERNAL | |
- DATA_LOSS | |
# 501 Status Code | |
NotImplementedStatusCode: | |
type: string | |
enum: # gRPC Status Code | |
- UNIMPLEMENTED | |
# 503 Status Code | |
UnavailableStatusCode: | |
type: string | |
enum: # gRPC Status Code | |
- UNAVAILABLE | |
# 504 Status Code | |
GatewayTimeoutStatusCode: | |
type: string | |
enum: # gRPC Status Code | |
- DEADLINE_EXCEEDED |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment