Relationships Platform API - Error Codes
BrokerNG nativo (contrato estável, códigos < 1000)
Esses códigos são emitidos pelo BrokerNG e permanecem inalterados por compatibilidade entre projetos.
| Código | HTTP | Descrição |
|---|---|---|
| 1 | 503 | No request for action execution. |
| 2 | 500 | Internal and unknown server error. |
| 3 | 503 | Requested database not configured. |
| 4 | 503 | Failed to setup DB connection/transaction. |
| 5 | 503 | Failed to finalize DB transaction/connection. |
| 6 | 501 | Invalid parameter type in action contract. |
| 7 | 503 | Internal action validation error. |
| 8 | 501 | Action not present in endpoint mapping. |
| 9 | 501 | Validator execution error. |
| 100 | 404 | Endpoint not configured. |
| 101 | 202 | OPTIONS/CORS handling. |
| 102 | 405 | HTTP method not supported for action. |
| 103 | 401 | IP address blocked by network rule. |
| 104 | 401 | Authorization header missing. |
| 105 | 401 | Session/token invalid or expired. |
| 106 | 400 | Input is not valid JSON. |
| 107 | 406 | Input parameter errors. |
| 110 | 401 | Token invalid/inactive. |
| 111 | 406 | Generic method-level validation error. |
| 112 | 404 | Requested resource does not exist. |
| 113 | 403 | Access denied on required ACLs. |
| 114 | 406 | Dry-run option not allowed. |
| 115 | 429 | Too many requests. |
Série global da API 1000xxxx (reutilizável entre endpoints)
Esses códigos pertencem à aplicação (não ao BrokerNG) e podem ser usados por múltiplos endpoints.
| Código | HTTP | Descrição |
|---|---|---|
| 10000001 | 406 | Endereço de e-mail inválido. |
Série 1001xxxx - Endpoint Avatar
Endpoint: GET /avatar/get-1.0
| Código | HTTP | Descrição |
|---|---|---|
| 10010001 | 406 | Reservado para erro exclusivo do endpoint de avatar. |
Série 1002xxxx - Endpoint Keepalive
Endpoint: POST /keepalive-1.0
| Código | HTTP | Descrição |
|---|---|---|
| 10020001 | 500 | Falha no housekeeping de avatars. |
Status HTTP por endpoint (análise efetiva do código)
| Endpoint | Status possíveis | Observações |
|---|---|---|
GET /avatar/get-1.0 |
200, 400, 401, 403, 405, 406, 429, 500, 501, 503 | Inclui BrokerNG nativo, global API 10000001 e série local 1001xxxx. |
POST /keepalive-1.0 |
200, 400, 401, 403, 405, 406, 429, 500, 501, 503 | Inclui BrokerNG nativo e série local 1002xxxx. |