Fix: exceptions.NameError: global name 'BadResponse' is not defined