 <p>I think the correct status code in this case is <code>400 Bad Request</code>. The entity you expect must always have a certain line-count, so if it doesn't have that line-count the entity is invalid.</p> <p>Generally validation problems are communicated as 400 errors.</p>