Hi all,

How could I return a JSON payload with the RaiseFault policy. The '{' and '}' braces are removed by Apigee so that a bad response is sent back to my client application.

Policy definition :

{
"error": "invalid_token",
"error_description": "the provided token was not found"
}

404
Not Found

Received response : no braces

"error": "invalid_token",
"error_description": "the provided token was not found"

Tkanks
Pierre

Provide your email address if you wish to be contacted offline about your comment.
We will not display your email address as part of your comment.

We'd love your feedback and perspective! Please be as specific as possible.
Type the characters you see in this picture. (verify using audio)

Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.