Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

NodeJS ScriptTarget and Faulthandling

Hi!

In my API I am using a ScriptTarget that points to a Node script and I'm having some problems with fault handling. I expected that I could add a DefaultFaultRule to the target and that any response with an error code being returned from the Node script (e.g. a 404) would be handled there.

Is this possible? I would prefer this because I already have common logic for fault handling in the proxy.

Are there best practices for fault handling together with Node Targets?

Thanks in advance,

Daniel

2 4 588
4 REPLIES 4