Madhu,
I think it's usefull to test the api gateway endpoint with a tool like soapUI. Try to recreate the error with soapUI or something similar. This way you can easily validate the response you get from the apigateway.
If that is correct .. Recreate the error in your app connect development environment, debug and trace it.
If you want you can share the response from soapui so that we can have a look.
mvg
Kim