Status Code | Description |
---|---|
200 | OK: The request was successful. |
201 | Created: The resource was successfully created (e.g., a new record). |
400 | Bad Request: The request is invalid or cannot be processed due to malformed input. |
401 | Unauthorized: Authentication credentials are missing or invalid. |
403 | Forbidden: The authenticated user lacks permission to access the requested resource. |
404 | Not Found: The requested resource does not exist in Nxsys. |
422 | Unprocessable Entity: The request is well-formed but contains semantic errors (e.g., invalid data format). |
429 | Too Many Requests: The API rate limit has been exceeded. |
500 | Internal Server Error: An unexpected issue occurred on the Nxsys API servers. |
{
"error": {
"code": "error_code",
"message": "Human-readable error message",
"details": {
// Optional: Additional context or specific error information
}
}
}
{
"error": {
"code": "invalid_parameter",
"message": "The provided ID format is invalid",
"details": {
"field": "id",
"expected_format": "XX-999999999"
}
}
}
invalid_credentials
: The API key is invalid or has expired.missing_credentials
: No API key was provided in the request.insufficient_permissions
: The API key lacks the necessary permissions to access the requested resource.invalid_request
: The request payload is malformed or missing required fields.invalid_parameter
: One or more parameters are invalid (e.g., incorrect ID format).resource_not_found
: The requested resource does not exist in Nxsys.400
or 422
errors, especially for critical fields like IDs or amounts.error.code
field to implement logic for specific scenarios, such as prompting re-authentication for 401
errors.429
(rate limit exceeded) or network issues, use exponential backoff to retry requests responsibly.error.message
and error.details
for debugging and monitoring to streamline troubleshooting.