Added two different error types - LocksError and ConflictingLocksError to represent errors thrown by lock update operation in case of a conflict (link to API)
Added IModelsErrorParser in @itwin/imodels-client-authoring package to handle those specific scenarios and construct a class instance with appropriate properties.
Removed ParseErrorFunc from exported interfaces and removed statusCode property from error parsing (since now the API returns correctly formed unauthorized error)
Added more assertions to existing tests to verify error properties.
In this PR:
LocksError
andConflictingLocksError
to represent errors thrown by lock update operation in case of a conflict (link to API)IModelsErrorParser
in@itwin/imodels-client-authoring
package to handle those specific scenarios and construct a class instance with appropriate properties.ParseErrorFunc
from exported interfaces and removedstatusCode
property from error parsing (since now the API returns correctly formed unauthorized error)