Returns the correct status codes for various UAA error cases

[#73644460]