It is seen here, that we evaluate response.data identically for 'success' & error response codes.
In case of 404 error and when await response.text() === '', reading await response.json() throws an error
SyntaxError: Unexpected end of JSON input
The default axios XHR adapter behaves differently & won't throw in this case. With this adapter I have to look into caught error message text at this point.