Using ERPNext API into other front-end library such as React

Basically, what I am trying to do is, use the ERPNEXT api for the posting forms and receiving data. While posting Payment entry to ERPNEXT payment entry, how to find the error and all.

basically i received response as like above, and is really difficult to know what type of error is it.