How can I change error templates for API Gateway?

Is it via a strategy like this? http://flask.pocoo.org/docs/0.11/patterns/apierrors/