Please help me in achiving below in datapower.
We have configured a datapower b2b service which request and response type as NON-XML. At backend, we have a Java service. The datapower service is expecting a response from backend service . The response from backend java service will be a payload which will include a base 64 representation of the PDF document. However if the requested document cannot be retrieved (due to lack of authorization or document not found) an HTTPS 403 Forbidden error response should be returned to the client from the datapower.
How can I achieve this, when request and response type for datapower is Non XML?