Is there a plugin to run lua script after getting a response from another plugin?


I am looking for something similar to serverless function. With serverless function, the lua script is triggered on a request. I want to change the response body based on the accept header when we get rate limiting exception.

Thank you