Skip to content

fix: Handle Moodle error codes#2519

Open
shravani-sonata-gottapu wants to merge 1 commit into
openedx:masterfrom
shravani-sonata-gottapu:shravani/ENT-9080
Open

fix: Handle Moodle error codes#2519
shravani-sonata-gottapu wants to merge 1 commit into
openedx:masterfrom
shravani-sonata-gottapu:shravani/ENT-9080

Conversation

@shravani-sonata-gottapu

@shravani-sonata-gottapu shravani-sonata-gottapu commented Feb 3, 2026

Copy link
Copy Markdown

ENT-9080
Issue :
Moodle sometimes returns HTTP 200 with an error body, so failed content transmissions can appear successful in the admin UI.
Changes :

  • Added MOODLE_ERROR_STATUS_MAP to translate Moodle errorcode values.
  • Updated moodle_request_wrapper to raise MoodleClientError with mapped status.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant