Error handling of insertRecords

Error handling of insertRecords

The insertRecords API method returns a response. If there is an error, can i know what is the reason for the error. For example: invalid email format or alphabets in a phone number, or field does not exist etc.
How do I catch errors and propagate to the user or the troubleshooter?

Thanks
Usha R