catch exception more specifically in Response.ok
Merge pull request #2382 from daftshady/exception

catch exception more specifically