pass the body in the error

body actually contains the error in body.error (depends on pull request #6)