Skip to content
Orvanov0.2.0

forbidden

HTTP status: 403 · Code: forbidden

Your console role does not allow this action.

Your console role doesn’t allow this action, for example a member trying to change org settings that only an owner can change.

Ask an owner of the org to do it, or to give you a role that can. Team members and roles lists what each role can do.

Every SDK throws one error type for a failed call. Match on its code, which is always forbidden for this error, never on the message.

import { ErrorCode, OrvanoError } from '@orvano/js'
try {
// your Orvano call
} catch (error) {
if (error instanceof OrvanoError && error.code === ErrorCode.forbidden) {
// handle forbidden
} else {
throw error
}
}

The error also carries the HTTP status (403), a message, and a request ID. Quote the request ID when you report a problem: the server logs it with the failure. See Errors for how errors work in every SDK, or every error code.