Add ErrorHandler rack middleware for building error response