Added exception handling for GET requests