def view(self, endpoint, request, **url_args):
        try:
            func_input = self.parse_request(endpoint, request, **url_args)
        except __HOLE__ as err:
            return error_response(str(err), 400)

        func_output = endpoint.handler(**func_input)
        return self.build_response(endpoint,
                                   func_input=func_input,
                                   func_output=func_output)
dataset/ETHPy150Open cosmic-api/cosmic.py/cosmic/http.py/Server.view