forbidden
HTTP status: 403 · Code: forbidden
Your console role does not allow this action.
Why it happens
Section titled “Why it happens”Your console role doesn’t allow this action, for example a member trying to change org settings that only an owner can change.
How to fix
Section titled “How to fix”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.
Catch it in your code
Section titled “Catch it in your code”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 }}import 'package:orvano_flutter/orvano_flutter.dart'; // or orvano_dart on a server
try { // your Orvano call} on OrvanoException catch (error) { if (error.code != ErrorCode.forbidden) rethrow; // handle forbidden}using Orvano;
try{ // your Orvano call}catch (OrvanoException error) when (error.Code == ErrorCode.Forbidden){ // handle forbidden}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.