MCPcopy Index your code
hub / github.com/simstudioai/sim / hasStatus

Function hasStatus

apps/sim/lib/knowledge/documents/utils.ts:31–35  ·  view source on GitHub ↗
(
  error: RetryableError
)

Source from the content-addressed store, hash-verified

29}
30
31function hasStatus(
32 error: RetryableError
33): error is HTTPError | { status?: number; message?: string } {
34 return typeof error === 'object' && error !== null && 'status' in error
35}
36
37function isRetryableErrorType(error: unknown): error is RetryableError {
38 if (!error) return false

Callers 1

isRetryableErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected