I set up Gateway Responses for Response status codes of:
403 and 404 in the Gateway Responses tab of API Gateway.
I setup the Response templates to text/html a