handle request errors