Handling various error cases

- return failure status code for various types of errors, erroneous post
  data, notifications or uaa is down etc.

[#76558338]