mitodl / ocw-studio

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

Refactor HTTP code constants for external resources #2198

Closed pt2302 closed 1 month ago

pt2302 commented 1 month ago

Description/Context

https://github.com/mitodl/ocw-studio/blob/d6d5cd100ae8c935aeb6cc2fb2faebb1e05988fe/external_resources/constants.py#L4-L10 defines constants for external resources that could instead be imported from rest_framework.status, a library that is used elsewhere in the ocw-studio codebase.

Plan/Design

Use rest_framework.status imports rather than defined constants for HTTP status codes.