diff options
| author | Michael DK Fowler <[email protected]> | 2025-04-02 14:25:14 -0400 |
|---|---|---|
| committer | Michael Fowler <[email protected]> | 2025-04-02 14:32:08 -0400 |
| commit | 343f5937fa8f1c8ecdfeb378ce63211401640a6b (patch) | |
| tree | d6213cfcad724d558d913ebc52b9854eb025f8c4 | |
| parent | e74e0559a79fda22bd4378a4a919bebe9fbb22e6 (diff) | |
312 Handle HTTP code 429
| -rw-r--r-- | addons/web/nx_web_http_client.c | 1 | ||||
| -rw-r--r-- | addons/web/nx_web_http_common.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/addons/web/nx_web_http_client.c b/addons/web/nx_web_http_client.c index 7fe76d90..6c8f4a35 100644 --- a/addons/web/nx_web_http_client.c +++ b/addons/web/nx_web_http_client.c @@ -80,6 +80,7 @@ static NX_WEB_HTTP_CLIENT_STATUS_MAP _nx_web_http_client_status_maps[] = {"415", NX_WEB_HTTP_STATUS_CODE_UNSUPPORTED_MEDIA}, {"416", NX_WEB_HTTP_STATUS_CODE_RANGE_NOT_SATISFY}, {"417", NX_WEB_HTTP_STATUS_CODE_EXPECTATION_FAILED}, + {"429", NX_WEB_HTTP_STATUS_CODE_TOO_MANY_REQUESTS}, {"500", NX_WEB_HTTP_STATUS_CODE_INTERNAL_ERROR}, {"501", NX_WEB_HTTP_STATUS_CODE_NOT_IMPLEMENTED}, {"502", NX_WEB_HTTP_STATUS_CODE_BAD_GATEWAY}, diff --git a/addons/web/nx_web_http_common.h b/addons/web/nx_web_http_common.h index bd299c40..f9a745b1 100644 --- a/addons/web/nx_web_http_common.h +++ b/addons/web/nx_web_http_common.h @@ -178,6 +178,7 @@ extern "C" { #define NX_WEB_HTTP_STATUS_CODE_SERVICE_UNAVAILABLE 0x3003E /* "503 Service Unavailable" */ #define NX_WEB_HTTP_STATUS_CODE_GATEWAY_TIMEOUT 0x3003F /* "504 Gateway Time-out" */ #define NX_WEB_HTTP_STATUS_CODE_VERSION_ERROR 0x30040 /* "505 HTTP Version not supported" */ +#define NX_WEB_HTTP_STATUS_CODE_TOO_MANY_REQUESTS 0x20041 /* "429 Too Many Requests" */ #define NX_WEB_HTTP_AUTHENTICATION_ERROR NX_WEB_HTTP_STATUS_CODE_UNAUTHORIZED /* HTTP client authentication failed */ /* Define the HTTP Server TCP port number */ |
