Make ErrorResponse/ErrorHandler public

To allow other projects to re-use these types/functions, the Gateway needs to expose the errorHandler/errorResponse variables.