pass the body in the error

body actually contains the error in body.error