double-check that the status_code attribute exists

Bizarrely, when running as a celery task this former response object is now only the unicode message.