HTTP Response Codes

Prev Next

The Rocket.Chat REST API will generate success and error responses to an API request and provide further details to fix the errors. Here is a summary to help you understand some of the responses and how you can fix the errors.

Status codes

Description

200 OK

The API request is successfully processed.

400 Bad Request

In most cases, the request cannot be processed due to missing mandatory parameters or incorrect formats.

Ensure you enter the values for all the required parameters in the correct format.

401 Unauthorized

The request cannot be authenticated as the user ID or authentication token is invalid.

Use the authentication endpoint to generate the token.

403 Forbidden

The user is not authorized to perform the action.

Make sure that you assign the required permissions to the users.