Use the new API error format in the APIs for existing processes

Erwan Rouchet
2026-03-13T16:21:42Z

https://redmine.teklia.com/issues/11464

The new API error format should be implemented on the RetrieveProcess, PartialUpdateProcess, UpdateProcess and DestroyProcess 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.

RetrieveProcess is used many times by the frontend, and used by a few workers, but none have any specific error handling.

UpdateProcess is not used.

PartialUpdateProcess is used by the frontend to filter elements, rename a process and stop a process, and there is an update to make on the process rename.

DestroyProcess is only used by the frontend and has no specific error handling.