handle request errors #16