hitbtc-com / hitbtc-api

HitBTC API
GNU Lesser General Public License v3.0
322 stars 152 forks source link

API Returning HTTP Status Code 200 When It Should Return 429 #239

Open Keitsu42 opened 5 years ago

Keitsu42 commented 5 years ago

Recently the API has been returning JSON error messages with code 429 while the HTTP header is set as 200. The HTTP header should be set as 429 in this case as 200 indicates no error.

This is happening when I am trying to update orders using PATCH

Example of error from my log files: 22/06/19 07:53:13 | Error message received with HTTP status code: 200 22/06/19 07:53:13 | Requested address: /order/cb164cacd85a06c3c4a12b3f47513344 22/06/19 07:53:13 | Action type: PATCH 22/06/19 07:53:13 | code: 429 22/06/19 07:53:13 | message: Too many requests 22/06/19 07:53:13 | description: Too many requests