Dunno bout iOS but I know Java&#x27;s built-in HTTP library requires you do something like `if (status&lt;400) { stream = getResponseStream() }  else { stream = getErrorStream()}`. It&#x27;s so silly.