Use the new API error format in Create/DestroyModelCompatibleWorker
https://redmine.teklia.com/issues/11464
The new API error format should be implemented on the CreateModelCompatibleWorker and DestroyModelCompatibleWorker endpoints, and the existing unit tests should be updated.
The best practices have details on how to implement this, including adding error codes to messages so that they do not always use the default code invalid.
This endpoint is only used by the frontend, and it does not do any specific error handling, so there are no other updates to make.