Skip to main content
Version: Next (2.x)

BaetaErrorCode

const BaetaErrorCode: object

Standard error codes used across the Baeta framework.

Type Declaration

NameTypeDefault valueDescription

AggregateError

"AGGREGATE_ERROR"

'AGGREGATE_ERROR'

Multiple errors occurred simultaneously

BadUserInput

"BAD_USER_INPUT"

'BAD_USER_INPUT'

Invalid input provided by the user

Forbidden

"FORBIDDEN"

'FORBIDDEN'

User is authenticated but lacks required permissions

InternalServerError

"INTERNAL_SERVER_ERROR"

'INTERNAL_SERVER_ERROR'

Unexpected server-side error

Unauthenticated

"UNAUTHENTICATED"

'UNAUTHENTICATED'

Authentication is required but was not provided