Mention the ranges again in the error code doc.

Apparently it's not obvious enough from the function docs.