ui: Fix resolving of api error message

fallback to the default ui response code mapped message if
no message exist (or exists but is empty) within the api response
body.