Added message for txt
Added message for txt
Expose api errors