allow custom error handlers to return a response object