Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug/forbidden #125

Merged
merged 8 commits into from
Oct 17, 2023
Merged

Bug/forbidden #125

merged 8 commits into from
Oct 17, 2023

Conversation

obgibson
Copy link
Collaborator

Requirements for a pull request

  • Unit tests related to the change have been updated
  • Documentation related to the change has been updated

Description of the Change

403 and 404 responses were not being handled properly. The UI would show a generic error. The generic error was shown because an exception was caught when trying to parse the response as JSON. 403 and 404 responses were HTML, not JSON.

This change catches those statuses earlier and returns the appropriate error.

Alternate Designs

-

Possible Drawbacks

Some states where a 404 was not expected may show more specific error messaging.

Verification Process

Go to a page where the server will be returning a 403. You should see a specific 403 error on the screen instead of a generic error.

Release Notes

Handle 403 and 404 responses.

@obgibson obgibson merged commit 0649466 into master Oct 17, 2023
3 checks passed
@obgibson obgibson deleted the bug/forbidden branch October 17, 2023 22:26
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