fix: include error_code in PreventRegistration exception response - #684
Merged
Merged
Conversation
The Authn MFE relies on the `error_code` in API responses to display appropriate error messages to users. Although the PreventRegistration exception already supports `error_code`, it was not previously included in the API response payload. This change ensures that `error_code` is returned in the response when a PreventRegistration exception is raised, allowing the frontend to handle errors more accurately.
Anas-hameed
approved these changes
Jul 14, 2025
muhammadali286
approved these changes
Jul 16, 2025
Waleed-Mujahid
added a commit
that referenced
this pull request
Aug 4, 2025
The Authn MFE relies on the `error_code` in API responses to display appropriate error messages to users. Although the PreventRegistration exception already supports `error_code`, it was not previously included in the API response payload. This change ensures that `error_code` is returned in the response when a PreventRegistration exception is raised, allowing the frontend to handle errors more accurately.
Waleed-Mujahid
added a commit
that referenced
this pull request
Aug 4, 2025
The Authn MFE relies on the `error_code` in API responses to display appropriate error messages to users. Although the PreventRegistration exception already supports `error_code`, it was not previously included in the API response payload. This change ensures that `error_code` is returned in the response when a PreventRegistration exception is raised, allowing the frontend to handle errors more accurately.
Waleed-Mujahid
added a commit
that referenced
this pull request
Aug 4, 2025
The Authn MFE relies on the `error_code` in API responses to display appropriate error messages to users. Although the PreventRegistration exception already supports `error_code`, it was not previously included in the API response payload. This change ensures that `error_code` is returned in the response when a PreventRegistration exception is raised, allowing the frontend to handle errors more accurately.
Waleed-Mujahid
added a commit
that referenced
this pull request
Aug 4, 2025
The Authn MFE relies on the `error_code` in API responses to display appropriate error messages to users. Although the PreventRegistration exception already supports `error_code`, it was not previously included in the API response payload. This change ensures that `error_code` is returned in the response when a PreventRegistration exception is raised, allowing the frontend to handle errors more accurately.
Waleed-Mujahid
added a commit
that referenced
this pull request
Aug 7, 2025
* feat: filter organizations with new openedx-filter (#671) We add a new filter OrganizationsRequested that is used to show organizations linked to the current tenant. Co-authored-by: waleed.mujahid <m.waleed4943@gmail.com> * fix: include error_code in PreventRegistration exception response (#684) The Authn MFE relies on the `error_code` in API responses to display appropriate error messages to users. Although the PreventRegistration exception already supports `error_code`, it was not previously included in the API response payload. This change ensures that `error_code` is returned in the response when a PreventRegistration exception is raised, allowing the frontend to handle errors more accurately. --------- Co-authored-by: waleed.mujahid <m.waleed4943@gmail.com>
Waleed-Mujahid
added a commit
that referenced
this pull request
Dec 1, 2025
* feat: filter organizations with new openedx-filter (#671) We add a new filter OrganizationsRequested that is used to show organizations linked to the current tenant. Co-authored-by: waleed.mujahid <m.waleed4943@gmail.com> * fix: include error_code in PreventRegistration exception response (#684) The Authn MFE relies on the `error_code` in API responses to display appropriate error messages to users. Although the PreventRegistration exception already supports `error_code`, it was not previously included in the API response payload. This change ensures that `error_code` is returned in the response when a PreventRegistration exception is raised, allowing the frontend to handle errors more accurately. --------- Co-authored-by: waleed.mujahid <m.waleed4943@gmail.com>
Waleed-Mujahid
added a commit
that referenced
this pull request
Dec 1, 2025
* feat: filter organizations with new openedx-filter (#671) We add a new filter OrganizationsRequested that is used to show organizations linked to the current tenant. Co-authored-by: waleed.mujahid <m.waleed4943@gmail.com> * fix: include error_code in PreventRegistration exception response (#684) The Authn MFE relies on the `error_code` in API responses to display appropriate error messages to users. Although the PreventRegistration exception already supports `error_code`, it was not previously included in the API response payload. This change ensures that `error_code` is returned in the response when a PreventRegistration exception is raised, allowing the frontend to handle errors more accurately. --------- Co-authored-by: waleed.mujahid <m.waleed4943@gmail.com>
Waleed-Mujahid
added a commit
that referenced
this pull request
Dec 2, 2025
* feat: filter organizations with new openedx-filter (#671) We add a new filter OrganizationsRequested that is used to show organizations linked to the current tenant. Co-authored-by: waleed.mujahid <m.waleed4943@gmail.com> * fix: include error_code in PreventRegistration exception response (#684) The Authn MFE relies on the `error_code` in API responses to display appropriate error messages to users. Although the PreventRegistration exception already supports `error_code`, it was not previously included in the API response payload. This change ensures that `error_code` is returned in the response when a PreventRegistration exception is raised, allowing the frontend to handle errors more accurately. --------- Co-authored-by: waleed.mujahid <m.waleed4943@gmail.com>
Anas-hameed
pushed a commit
that referenced
this pull request
Dec 2, 2025
* feat: filter organizations with new openedx-filter (#671) We add a new filter OrganizationsRequested that is used to show organizations linked to the current tenant. Co-authored-by: waleed.mujahid <m.waleed4943@gmail.com> * fix: include error_code in PreventRegistration exception response (#684) The Authn MFE relies on the `error_code` in API responses to display appropriate error messages to users. Although the PreventRegistration exception already supports `error_code`, it was not previously included in the API response payload. This change ensures that `error_code` is returned in the response when a PreventRegistration exception is raised, allowing the frontend to handle errors more accurately. --------- Co-authored-by: waleed.mujahid <m.waleed4943@gmail.com>
Waleed-Mujahid
added a commit
that referenced
this pull request
Dec 2, 2025
* feat: filter organizations with new openedx-filter (#671) We add a new filter OrganizationsRequested that is used to show organizations linked to the current tenant. Co-authored-by: waleed.mujahid <m.waleed4943@gmail.com> * fix: include error_code in PreventRegistration exception response (#684) The Authn MFE relies on the `error_code` in API responses to display appropriate error messages to users. Although the PreventRegistration exception already supports `error_code`, it was not previously included in the API response payload. This change ensures that `error_code` is returned in the response when a PreventRegistration exception is raised, allowing the frontend to handle errors more accurately. --------- Co-authored-by: waleed.mujahid <m.waleed4943@gmail.com>
Anas-hameed
pushed a commit
that referenced
this pull request
Jan 19, 2026
* feat: filter organizations with new openedx-filter (#671) We add a new filter OrganizationsRequested that is used to show organizations linked to the current tenant. Co-authored-by: waleed.mujahid <m.waleed4943@gmail.com> * fix: include error_code in PreventRegistration exception response (#684) The Authn MFE relies on the `error_code` in API responses to display appropriate error messages to users. Although the PreventRegistration exception already supports `error_code`, it was not previously included in the API response payload. This change ensures that `error_code` is returned in the response when a PreventRegistration exception is raised, allowing the frontend to handle errors more accurately. --------- Co-authored-by: waleed.mujahid <m.waleed4943@gmail.com>
Anas-hameed
pushed a commit
that referenced
this pull request
Jan 19, 2026
* feat: filter organizations with new openedx-filter (#671) We add a new filter OrganizationsRequested that is used to show organizations linked to the current tenant. Co-authored-by: waleed.mujahid <m.waleed4943@gmail.com> * fix: include error_code in PreventRegistration exception response (#684) The Authn MFE relies on the `error_code` in API responses to display appropriate error messages to users. Although the PreventRegistration exception already supports `error_code`, it was not previously included in the API response payload. This change ensures that `error_code` is returned in the response when a PreventRegistration exception is raised, allowing the frontend to handle errors more accurately. --------- Co-authored-by: waleed.mujahid <m.waleed4943@gmail.com>
Anas-hameed
pushed a commit
that referenced
this pull request
Feb 19, 2026
* feat: filter organizations with new openedx-filter (#671) We add a new filter OrganizationsRequested that is used to show organizations linked to the current tenant. Co-authored-by: waleed.mujahid <m.waleed4943@gmail.com> * fix: include error_code in PreventRegistration exception response (#684) The Authn MFE relies on the `error_code` in API responses to display appropriate error messages to users. Although the PreventRegistration exception already supports `error_code`, it was not previously included in the API response payload. This change ensures that `error_code` is returned in the response when a PreventRegistration exception is raised, allowing the frontend to handle errors more accurately. --------- Co-authored-by: waleed.mujahid <m.waleed4943@gmail.com>
Anas-hameed
pushed a commit
that referenced
this pull request
Feb 20, 2026
* feat: filter organizations with new openedx-filter (#671) We add a new filter OrganizationsRequested that is used to show organizations linked to the current tenant. Co-authored-by: waleed.mujahid <m.waleed4943@gmail.com> * fix: include error_code in PreventRegistration exception response (#684) The Authn MFE relies on the `error_code` in API responses to display appropriate error messages to users. Although the PreventRegistration exception already supports `error_code`, it was not previously included in the API response payload. This change ensures that `error_code` is returned in the response when a PreventRegistration exception is raised, allowing the frontend to handle errors more accurately. --------- Co-authored-by: waleed.mujahid <m.waleed4943@gmail.com>
Copilot AI
pushed a commit
to AhtishamShahid/edx-platform
that referenced
this pull request
Mar 4, 2026
* feat: filter organizations with new openedx-filter (edly-io#671) We add a new filter OrganizationsRequested that is used to show organizations linked to the current tenant. Co-authored-by: waleed.mujahid <m.waleed4943@gmail.com> * fix: include error_code in PreventRegistration exception response (edly-io#684) The Authn MFE relies on the `error_code` in API responses to display appropriate error messages to users. Although the PreventRegistration exception already supports `error_code`, it was not previously included in the API response payload. This change ensures that `error_code` is returned in the response when a PreventRegistration exception is raised, allowing the frontend to handle errors more accurately. --------- Co-authored-by: waleed.mujahid <m.waleed4943@gmail.com> (cherry picked from commit c28fc87)
Copilot AI
pushed a commit
to AhtishamShahid/edx-platform
that referenced
this pull request
Mar 4, 2026
* feat: filter organizations with new openedx-filter (edly-io#671) We add a new filter OrganizationsRequested that is used to show organizations linked to the current tenant. Co-authored-by: waleed.mujahid <m.waleed4943@gmail.com> * fix: include error_code in PreventRegistration exception response (edly-io#684) The Authn MFE relies on the `error_code` in API responses to display appropriate error messages to users. Although the PreventRegistration exception already supports `error_code`, it was not previously included in the API response payload. This change ensures that `error_code` is returned in the response when a PreventRegistration exception is raised, allowing the frontend to handle errors more accurately. --------- Co-authored-by: waleed.mujahid <m.waleed4943@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The Authn MFE relies on the
error_codein API responses to display appropriate error messages to users. Although the PreventRegistration exception already supportserror_code, it was not previously included in the API response payload.This change ensures that
error_codeis returned in the response when a PreventRegistration exception is raised, allowing the frontend to handle errors more accurately.StudentLoginRequestedfilter already does this butStudentRegistrationRequesteddoes notAuthn MFE PR:
edly-io/frontend-app-authn#15