Replace `check_for_get_code` with `assert_request_status_code`

More flexible, uses the word "assert", method instead of function
Merge pull request #4654 from edx/db/kill-check-for-code

Replace `check_for_get_code` with `assert_request_status_code`