In this section, we outline how the API handles errors and exceptions. Understanding error responses is crucial for effective integration and troubleshooting. Our API uses standard HTTP status codes to indicate the success or failure of a request, along with detailed error messages to provide more context. Below, you will find a comprehensive list of potential error codes, their meanings, and suggestions for resolving common issues. By following these guidelines, you can ensure a smooth and reliable experience when interacting with our API.
Response
If any errors occur during API requests, appropriate HTTP status codes will be returned along with error messages in the response body.
{
"detail": [
{
"loc": [
"body",
"holdings",
1,
"weight"
],
"msg": "ensure this value is greater than 0",
"type": "value_error.number.not_gt",
"ctx": {
"limit_value": 0
}
}
]
}
6.1 Upload portfolio return codes and errors