capturing request error