Handle request errors