Resposta em: TEXTJSONXML

Códigos de Erro



Error Code HTTP Status Message Details
error_bad_request 400 Bad Request Missing or invalid request parameters. Check the channel ID, API key, and query filters.
error_auth_required 401 Authorization Required Please provide proper authentication details.
error_not_licensed 403 License Required The device must have an up-to-date license to query via API.
error_resource_not_found 404 Resource Not Found The requested resource was not found. Please check the URL and try again.
error_method_invalid 405 Method Not Allowed Please use the proper HTTP method for this request.
error_no_action 421 No Action Performed The server attempted to process your request, but has no action to perform.
error_too_many_requests 429 Too Many Requests Please wait before making another request.
error_internal_server 500 Internal Server Error An unexpected error occurred while processing the request. Please try again shortly.
error_bad_gateway 502 Bad Gateway The proxy received an invalid response or the application service is restarting. Please try again in a few seconds.
error_service_unavailable 503 Service Unavailable The service is temporarily unavailable or under maintenance. Please try again shortly.
error_gateway_timeout 504 Gateway Timeout The server took too long to respond. Try narrowing the query range (e.g. results or days) and try again.
Todos os erros serão enviados com o respectivo código de status HTTP.

Exemplo de resposta de erro: error_auth_required
A resposta será um objeto de erro JSON, por exemplo:
{
  "status": "401",
  "error":
  {
    "error_code": "error_auth_required",
    "message": "Autorização necessária",
    "details": "Forneça credenciais de autenticação válidas."
  }
}
    
A resposta será um objeto de erro XML, por exemplo:
<?xml version="1.0" encoding="UTF-8"?>
<error>
  <error-code>error_auth_required</error-code>
  <message>Autorização necessária</message>
  <details>Forneça credenciais de autenticação válidas.</details>
</error>