bad_request_error instead of raise