Follow-up: Convert errors from the backend into `Error` objects
Problem
Currently we throw
objects and strings as errors from the backend and around the application to be handled by the frontend in GitLab. This makes it complicated to handle errors uniformly and rely on the structure.
Related conversation: https://gitlab.com/gitlab-org/customers-gitlab-com/-/merge_requests/9892#note_1888641322 and https://gitlab.com/gitlab-org/customers-gitlab-com/-/merge_requests/9917#note_1889771980.
Proposed solution
Convert errors from the backend into Error
objects, so we can relay on the format/structure around the application
Edited by Michael Lunøe