Fixed issues on multi_status API call and added better error handling.