Hi @haniel,
A 504 Gateway Timeout usually means the request reached a gateway or proxy, but the upstream service did not respond in time. If the URL itself fails to load, this is different from an invalid API query.
For Hexnode API usage, rate limiting is handled separately. If the API request limit is exceeded, the expected response is typically a 429 Too Many Requests error.
So, in this case:
504 Gateway Timeout points to a temporary availability or connectivity issue.
429 Too Many Requests points to API rate limiting.
- If the same URL works again after a few minutes without any change from your side, it was most likely an intermittent service-side timeout.
For integrations, it is recommended to handle 5xx errors with retry logic rather than treating them as permanent API failures. A safe approach is to retry after a short delay and use exponential backoff to avoid sending repeated requests during a temporary outage.
Best Regards,
Isabel Lora
Hexnode UEM