def mock_ent_courses_api_with_error(self, enterprise_uuid):
responses.add(<EOL>responses.GET,<EOL>url=self.build_enterprise_api_url('<STR_LIT>', enterprise_uuid),<EOL>json={},<EOL>status=<NUM_LIT>,<EOL>content_type='<STR_LIT:application/json>',<EOL>)<EOL>
DRY function to register enterprise courses API to return error response.