Replace `check_for_get_code` with `assert_request_status_code`

More flexible, uses the word "assert", method instead of function