exception handling on get request