Skip to main content

Status Codes

Every server response will have a http status code which will follow the HTTP status code standards.

But also every response will have this body structure:

{
"status": <status-code | number>,
"data": <data | any>
"error": <error | string>
}

HTTP Status Codes

Status CodeDescription
200Success
400Bad Request
401Unauthorized
403Forbidden
404Not Found
429Too Many Requests
500Internal Server Error

Custom Status Codes

Status CodeDescription
200Success
5001Too Many Accounts (for copier or leader when they reach the limit of accounts)
5002Leader Not Active (when trying to copy a leader that is not active)
5003Leader name has been taken (can't create a new leader with the same name)
5004Already copying the leader (same copier shouldn't copy the same leader twice)
5005Copier start amount is less than minimum required by leader to start copying
5006Commission mismatch (when copier posts a commission but leader has changed commission)