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

Function isBadRequestError

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

Source from the content-addressed store, hash-verified

171 * `false` otherwise.
172 */
173export const isBadRequestError = error =>
174 grpcStatusCode(error) === 9 || httpStatusCode(error) === 400
175
176/**
177 * Returns whether the grpc error represents an already exists error.

Callers 1

isNotEnabledErrorFunction · 0.90

Calls 2

grpcStatusCodeFunction · 0.85
httpStatusCodeFunction · 0.85

Tested by

no test coverage detected