catching httplib bad status