Handle API exceptions error messages