--- title: Error Handling sidebar_label: Error Handling description: How to identify and resolve common Partner API errors. --- # Error Handling Use the error `code` and `message` in the API response to identify the issue, then follow the standard resolution steps below. For details on the response structure and a full index of codes, see [Errors][errors]. ## PERMISSION_DENIED `PERMISSION_DENIED` indicates that the service account does not have permission to perform the requested operation. ### Resolution Assign an appropriate role to the service account in the noon Partner Portal, then authenticate again and retry the request. Any role that grants the permissions required by the operation can be used, such as **Project Viewer**. If you need access to everything in the project, assign **Project Owner**. #### How to update your service account role 1. Open the [noon Partner Portal][partner-access-app] and select **User Access**. 2. Locate the service account that received the error, then select the three-dot menu at the end of its row and select **Manage Role**. ![A service account listed on the User Access page][error-handling/permission-denied/user-access] 2. On the **Roles & Permissions** page, select **Add another role**. ![The Roles & Permissions page for a service account][error-handling/permission-denied/roles-permissions] 5. Under **Platform**, select a role that grants the required permissions, then select **Update**. For full access to the project, select **Project Owner**. ![Selecting the Project Owner role][error-handling/permission-denied/role-selection] 6. Authenticate again, repeat the API request, and confirm that it no longer returns `PERMISSION_DENIED`.