return error from body