Status Codes

Status Codes Responses

The API can return various HTTP status codes indicating the result of the authentication request. Below is a detailed explanation of each status code you might encounter when using the authentication endpoint:

Status CodeDescriptionExplanation

200 OK

Success

The request was successful, and the user has been authenticated. The response will contain the idToken, accessToken, and refreshToken.

400 Bad Request

Invalid Request

The request could not be understood by the server due to malformed syntax. This may occur if required fields are missing or improperly formatted.

401 Unauthorized

Invalid Credentials

The authentication failed because the username or password is incorrect. This status code indicates that the user is not authorized to access the resource.

403 Forbidden

Access Denied

The server understood the request, but the user does not have permission to access the requested resource. This may occur if the user is not allowed to authenticate or access certain features.

404 Not Found

Endpoint Not Found

The requested resource could not be found. This typically means that the endpoint URL is incorrect.

500 Internal Server Error

Server Error

The server encountered an unexpected condition that prevented it from fulfilling the request. This indicates an issue on the server side, not with the request itself.

Last updated