UNAUTHORIZED — authentication required or token invalid
cyoda-go version 0.6.2
errors.UNAUTHORIZED
Section titled “errors.UNAUTHORIZED”UNAUTHORIZED — the request does not include valid authentication credentials or the provided token failed verification.
SYNOPSIS
Section titled “SYNOPSIS”HTTP: 401 Unauthorized. Retryable: no.
DESCRIPTION
Section titled “DESCRIPTION”Returned when the Authorization header is missing, the bearer token is expired, the token signature is invalid, or the token was issued by an untrusted issuer. Also returned when a request reaches a protected route with no identity context established by the auth middleware.
Not retryable with the same token. A fresh Authorization: Bearer <token> header is required.
SEE ALSO
Section titled “SEE ALSO”- errors
- errors.FORBIDDEN
See also
Section titled “See also”cyoda help errors— Every error response from the Cyoda REST API carries a structurederrorCodein thepropertiesobject. Multiple codes may share the same HTTP status. Programmatic handling keys onerrorCode, not HTTP status.cyoda help errors FORBIDDEN— The request was authenticated successfully but the caller’s JWT claims do not include the role required by the endpoint (for example,adminis required for administrative operations). Tenant mismatch — where the caller’s tenant does not match the resource — also produces this error.
Raw formats
Section titled “Raw formats”/help/errors/unauthorized.json— full descriptor (matchesGET /help/{topic}envelope)/help/errors/unauthorized.md— body only