Status Codes
This article introduces the HTTP status codes and response format examples returned under different statuses when connecting to the MaiAgent service via API.
When sending an HTTP request via the API, you can use the following status codes to check if the API request was successful:
Status Code Descriptions
Success Codes
Status Code
Description
200
Request successful
201
Resource created successfully
Success Response Example
{
"count": "integer",
"next": "string|null",
"previous": "string|null",
"results": [
// Result content returned
]
}Error Codes
Status Code
Description
400
Bad Request
401
Authentication failed
403
Permission denied
404
Resource not found
500
Server error
Error Response Example
400 - Bad Request: Required field missing
{
"files": ["This field is required."],
"filename": ["This field is required."],
"file": ["This field is required."]
}Last updated
Was this helpful?
