Refs #6512 adds error check to merge API response and error message to UI