MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / grpcStatusCode

Function grpcStatusCode

pkg/webui/lib/errors/utils.js:136–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134 * @returns {number} The GRPC error code, or `false`.
135 */
136export const grpcStatusCode = error => isBackend(error) && (error.code || error.grpc_code)
137
138/**
139 * Tests whether the grpc error represents the not found erorr.

Callers 8

isNotFoundErrorFunction · 0.85
isInternalErrorFunction · 0.85
isInvalidArgumentErrorFunction · 0.85
isBadRequestErrorFunction · 0.85
isAlreadyExistsErrorFunction · 0.85
isPermissionDeniedErrorFunction · 0.85
isUnauthenticatedErrorFunction · 0.85
isConflictErrorFunction · 0.85

Calls 1

isBackendFunction · 0.85

Tested by

no test coverage detected