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

Function isAlreadyExistsError

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

Source from the content-addressed store, hash-verified

181 * `false` otherwise.
182 */
183export const isAlreadyExistsError = error => grpcStatusCode(error) === 6 // NOTE: HTTP 409 can also be AbortedError.
184
185/**
186 * Returns whether the grpc error represents a permission denied error.

Callers

nothing calls this directly

Calls 1

grpcStatusCodeFunction · 0.85

Tested by

no test coverage detected