<sequence name="_graphql_failure_handler" xmlns="http://ws.apache.org/ns/synapse">
    <payloadFactory media-type="json">
        <format>{"code":"$1","message":"$2","description":"$3"}</format>
        <args>
            <arg expression="$ctx:ERROR_CODE"/>
            <arg expression="$ctx:ERROR_MESSAGE"/>
            <arg expression="$ctx:ERROR_DETAIL"/>
        </args>
    </payloadFactory>
    <property name="RESPONSE" value="true"/>
    <header name="To" action="remove"/>
    <property name="NO_ENTITY_BODY" scope="axis2" action="remove"/>
    <property name="ContentType" scope="axis2" action="remove"/>
    <property name="Authorization" scope="transport" action="remove"/>
    <property name="Host" scope="transport" action="remove"/>
    <property name="Accept" scope="transport" action="remove"/>
    <property name="X-JWT-Assertion" scope="transport" action="remove"/>
    <sequence key="_cors_request_handler_"/>
</sequence>
