handling requests exceptions