@@ -301,7 +301,7 @@ export class LiveMap<T extends Record<string, Value> = Record<string, Value>>
301301 throw new this . _client . ErrorInfo (
302302 `Cannot apply object operation with objectId=${ op . objectId } , to this LiveMap with objectId=${ this . getObjectId ( ) } ` ,
303303 92000 ,
304- 500 ,
304+ 400 ,
305305 ) ;
306306 }
307307
@@ -390,22 +390,22 @@ export class LiveMap<T extends Record<string, Value> = Record<string, Value>>
390390 overrideWithObjectState ( objectMessage : ObjectMessage ) : LiveMapUpdate < T > | LiveObjectUpdateNoop {
391391 const objectState = objectMessage . object ;
392392 if ( objectState == null ) {
393- throw new this . _client . ErrorInfo ( `Missing object state; LiveMap objectId=${ this . getObjectId ( ) } ` , 92000 , 500 ) ;
393+ throw new this . _client . ErrorInfo ( `Missing object state; LiveMap objectId=${ this . getObjectId ( ) } ` , 92000 , 400 ) ;
394394 }
395395
396396 if ( objectState . objectId !== this . getObjectId ( ) ) {
397397 throw new this . _client . ErrorInfo (
398398 `Invalid object state: object state objectId=${ objectState . objectId } ; LiveMap objectId=${ this . getObjectId ( ) } ` ,
399399 92000 ,
400- 500 ,
400+ 400 ,
401401 ) ;
402402 }
403403
404404 if ( objectState . map ?. semantics !== this . _semantics ) {
405405 throw new this . _client . ErrorInfo (
406406 `Invalid object state: object state map semantics=${ objectState . map ?. semantics } ; LiveMap semantics=${ this . _semantics } ` ,
407407 92000 ,
408- 500 ,
408+ 400 ,
409409 ) ;
410410 }
411411
@@ -415,23 +415,23 @@ export class LiveMap<T extends Record<string, Value> = Record<string, Value>>
415415 throw new this . _client . ErrorInfo (
416416 `Invalid object state: object state createOp objectId=${ objectState . createOp ?. objectId } ; LiveMap objectId=${ this . getObjectId ( ) } ` ,
417417 92000 ,
418- 500 ,
418+ 400 ,
419419 ) ;
420420 }
421421
422422 if ( objectState . createOp . action !== ObjectOperationAction . MAP_CREATE ) {
423423 throw new this . _client . ErrorInfo (
424424 `Invalid object state: object state createOp action=${ objectState . createOp ?. action } ; LiveMap objectId=${ this . getObjectId ( ) } ` ,
425425 92000 ,
426- 500 ,
426+ 400 ,
427427 ) ;
428428 }
429429
430430 if ( objectState . createOp . mapCreate ?. semantics !== this . _semantics ) {
431431 throw new this . _client . ErrorInfo (
432432 `Invalid object state: object state createOp map semantics=${ objectState . createOp . mapCreate ?. semantics } ; LiveMap semantics=${ this . _semantics } ` ,
433433 92000 ,
434- 500 ,
434+ 400 ,
435435 ) ;
436436 }
437437 }
@@ -738,7 +738,7 @@ export class LiveMap<T extends Record<string, Value> = Record<string, Value>>
738738 throw new this . _client . ErrorInfo (
739739 `Cannot apply MAP_CREATE op on LiveMap objectId=${ this . getObjectId ( ) } ; map's semantics=${ this . _semantics } , but op expected ${ mapCreate ?. semantics } ` ,
740740 92000 ,
741- 500 ,
741+ 400 ,
742742 ) ;
743743 }
744744
@@ -781,7 +781,7 @@ export class LiveMap<T extends Record<string, Value> = Record<string, Value>>
781781 throw new ErrorInfo (
782782 `Invalid object data for MAP_SET op on objectId=${ this . getObjectId ( ) } on key="${ op . key } "` ,
783783 92000 ,
784- 500 ,
784+ 400 ,
785785 ) ;
786786 }
787787
0 commit comments