Created
August 19, 2018 17:11
-
-
Save smaglio81/ed49ae29bdb1169ce32b730a592b15f4 to your computer and use it in GitHub Desktop.
Apigee Catch-All RaiseFault Handler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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