Skip to content

Add a generic error message when the error response is not of JSON type

  • Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA

What does this MR do and why?

Add a generic error message when the error response is not JSON.

Also, add an errored server response content type check before parsing it as JSON.

Update the related pot file.

Closes: #438572

Changelog: changed

Screenshots or screen recordings

Before After
before.png after.png
Edited by 🤖 GitLab Bot 🤖

Merge request reports