We would like to use our own access control application in the API Gateway by calling an endpoint under Identify and Access (Policies) in the custom extension. Here we found the API Gateway settings for response processing and enabled both features “Copy entire response” and “Abort API execution in case of failure”. In case of an unauthorized access we would then like to pass our error message that is thrown in the connected access control service. So far, unfortunately, the general error of the gateway (error code 500) is returned in case of failure. Can you please help us here, which settings (extended settings) exactly have to be made in order to forward the full error message of the connected access control application?
Many thanks in advance and best regards,