We are looking to override Kong error response structure and write custom messages (i.e. replace "API rate limit exceeded", "Invalid authentication credentials" and others with our custom messages).
The error response structure we are looking for (code is a custom internal error code, not related to HTTP code):
{
"errors":[
{
"code": 10,
"message": "This is a custom message for code 10."
}
]
}
I don't see any other possibilities than writing a custom plugin. If that is the only solution, how to install a plugin in the default Kubernetes deployment (Helm chart)?