Just want to suggest the developers to use best practices and put error code in a fixed key of the response. Currently the ltp api for example responds like this
{
"status": "failed",
"data": {
"805": "Too many requests..."
}
}
This is very difficult to handle. It should instead be like it is shown on Introduction page of the documentation (I can’t put links yet)
{
"status": "failed",
"data": {
"errorCode": "805",
"errorMessage": "Too many requests..."
}
}