check for errors during requests