Class

AuthError

AuthError(code, message, statusCodeopt, detailsopt)

Custom error class for authentication errors.

Constructor

# new AuthError(code, message, statusCodeopt, detailsopt)

Parameters:
Name Type Attributes Default Description
code string

Error code from AUTH_ERRORS

message string

Human-readable error message

statusCode number <optional>
null

HTTP status code

details object <optional>
null

Additional error details

Classes

AuthError