import * as grpc from '@grpc/grpc-js' ; export const RpcStatusHttpMap = { [ grpc . status . OK ] : 200 , [ grpc . status . INVALID_ARGUMENT ] : 400 , [ grpc . status . FAILED_PRECONDITION ] : 400 , [ grpc . status . OUT_OF_RANGE ] : 400 , [ grpc . status . UNAUTHENTICATED ] : 401 , [ grpc . status . PERMISSION_DENIED ] : 403 , [ grpc . status . NOT_FOUND ] : 404 , [ grpc . status . ABORTED ] : 409 , [ grpc . status . ALREADY_EXISTS ] : 409 , [ grpc . status . RESOURCE_EXHAUSTED ] : 429 , [ grpc . status . CANCELLED ] : 499 , [ grpc . status . DATA_LOSS ] : 500 , [ grpc . status . UNKNOWN ] : 500 , [ grpc . status . INTERNAL ] : 500 , [ grpc . status . UNAVAILABLE ] : 503 , [ grpc . status . DEADLINE_EXCEEDED ] : 504 , } ;