updating logic to report missing body error.