custom error message plugin for the error from oauth,spike arrest in apigee microgateway,custom error message plugin from error coming from oauth

Not applicable

Want to create a custom error message plugin to remodify the error message from the oauth,spike arrest .

I have tried capturing error in onerror_* event handles but it seems not capturing

Can You suggest me how to write custom plugin for this case?

Hey @Anil Sagar can you help here?

0 7 134
7 REPLIES 7

Former Community Member
Not applicable

The on error is triggered when an error is emitted by your custom plugin. Not when built in plugins throw an error. You can not customize the error message, at least not without modifying the shipped plugins.

Shipped plugins means built-in plugins or some other

Former Community Member
Not applicable

Can we modify these plugins according to our use?

Former Community Member
Not applicable

Of course. It is open source and Apache 2. You can fork the project or create a new set of plugins with the features you need.

when these error hooks are called?

what i am doing is i throw an error in custom plugin on onrequest calling next(err) and catching in onError_request in plugin but these hooks are not called.

Former Community Member
Not applicable