Add error parameter that includes the gateway error message