Ionic rest call can not catch http code 401 on ios

If the user credentials are incorrect the server returns 401, IOS did not return http code 401, but it did work on Android. how to handle this

the same for me . i cant get the error code 401 in my app . can anyone provide a solution. ?! plz

the same for me.

Ionic V3