Skip to content

Instantly share code, notes, and snippets.

@smaglio81
Created August 19, 2018 17:11
Show Gist options
  • Save smaglio81/ed49ae29bdb1169ce32b730a592b15f4 to your computer and use it in GitHub Desktop.
Save smaglio81/ed49ae29bdb1169ce32b730a592b15f4 to your computer and use it in GitHub Desktop.
Apigee Catch-All RaiseFault Handler
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<RaiseFault async="false" continueOnError="false" enabled="true" name="DevPortal-Response">
<DisplayName>DevPortal Response</DisplayName>
<Properties/>
<FaultResponse>
<Set>
<Headers>
<Header name="Location">https://devportal.yoursite.com</Header>
</Headers>
<Payload contentType="application/json">
{
"message": "No API Endpoint defined for this path. Please see https://devportal.yoursite.com/ for more information."
}
</Payload>
<StatusCode>301</StatusCode>
<ReasonPhrase>Redirect</ReasonPhrase>
</Set>
</FaultResponse>
<IgnoreUnresolvedVariables>true</IgnoreUnresolvedVariables>
</RaiseFault>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment