Hi.
If the jwt Unauthorized. It will response
{ “message”: “Unauthorized”}
I want rewrite the response like this:
{“status”: 401, “message”: “Unauthorized”}
I use the response-transfer plugin. but it not work.
curl -X POST http://localhost:8001/plugins
–data “name=response-transformer”
–data “consumer_id=88805b30-427c-4b34-bd71-666674e1ae17”
–data “config.add.json=status:401”
How can I do?
Thanks.