mitodl / ocw-studio

Open Source Courseware authoring tool
BSD 3-Clause "New" or "Revised" License
7 stars 3 forks source link

Refactor HTTP status codes for external resources #2199

Closed pt2302 closed 1 month ago

pt2302 commented 1 month ago

What are the relevant tickets?

Closes https://github.com/mitodl/ocw-studio/issues/2198.

Description (What does it do?)

This PR updates the constants for external resources to use rest_framework.status imports rather than defining the constants directly, to be consistent with the usage elsewhere in the ocw-studio codebase.

How can this be tested?

No functionality is affected by this PR. However, for completeness, test that the external resource link-checking functionality is not affected by following the same testing instructions as for https://github.com/mitodl/ocw-studio/pull/2171.