[#857] rate limiting - wrong response format

Migrated from Redmine #857 | Author: charles LEBRUN
Status: Rejected | Priority: Normal | Created: 2022-03-28


hello,

In case of rate limiting the API give an HTML response, the response should be follow format of content type header.

!screen.png!

In case of request with

'content-type': 'application/json'

API should return a json response and in addition should return an http response code:

429 (Too Many Requests)

charles LEBRUN wrote:

Hello,

Could you please motive your reject decision.

Thanks

Redmine Admin wrote:

hi, because this rate limits are not applied by API server but by server ahead it which doesn’t know if it was web or api request