better request error logging