detect errors based on body text so server doesn't fall with invalid URLs