Properly interpret HTTP response code