Let the schema validator return error codes instead of strings.