Skip to content

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
@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.

2 participants