Closed pt2302 closed 1 month ago
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.
rest_framework.status
ocw-studio
Use rest_framework.status imports rather than defined constants for HTTP status codes.
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 theocw-studio
codebase.Plan/Design
Use
rest_framework.status
imports rather than defined constants for HTTP status codes.