Replacing "try catch (Response)" with "as Response"