Documentation
↪ Back to homepage↗ Help Center
  • Getting Started
  • Topics
  • Foundry Platform
    • Overview
    • Authentication
    • Status Codes
    • Errors
    • Timestamps
    • Account
      • Get Account
      • Get Account Balance
      • Get Topup Details
    • Orders
      • Get Orders
      • Create Order
      • Get Order
      • Cancel Order
  • Segment Ledger
    • Ledger
      • Get Ledger
      • Update Ledger
    • Ledger Assets
      • Create Ledger Asset
      • List Ledger Assets
      • Get Ledger Asset
      • Update Ledger Asset
    • Ledger Accounts
      • Create Ledger Account
      • List Ledger Accounts
      • Get Ledger Account
      • Update Ledger Account
    • Ledger Transactions
      • Create Ledger Transaction
      • List Ledger Transactions
      • Get Ledger Transaction
  • Hyperhash
    • Under Development
Powered by GitBook
On this page
  1. Foundry Platform

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 Code
Description
Explanation

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.

PreviousAuthenticationNextErrors

Last updated 6 months ago