How does the body know it can't digest something?

No.12708030 ViewReplyOriginalReport
A certain input? a lack of certain output from the thing it's trying to digest?