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

Function isNotFoundError

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

Source from the content-addressed store, hash-verified

143 * `false` otherwise.
144 */
145export const isNotFoundError = error => grpcStatusCode(error) === 5 || httpStatusCode(error) === 404
146
147/**
148 * Returns whether the grpc error represents an internal server error.

Callers 15

applications.jsFile · 0.90
gateways.jsFile · 0.90
fetchMissingEntitiesFunction · 0.90
getDefaultRoutingPolicyFunction · 0.90
packet-broker.jsFile · 0.90
ignoreNotFoundFunction · 0.90

Calls 2

grpcStatusCodeFunction · 0.85
httpStatusCodeFunction · 0.85

Tested by

no test coverage detected