Typo in getResponseCode - exception string not correctly evaluated