handle request response