This is an example of response for GET /datasets/{id}/creationStatus:
{
"datasetId": "d7129f36-5d28-4e66-b674-8166ad20c5c9",
"status": "error",
"lastMessage": "The patientAge in that series differs from other series: /mnt/datalake/quibim/67498b4710c8ae9a2c812254/..."
}
The specification is here: https://eucaim-node.i3m.upv.es/dataset-service/api-doc#tag/datasets/operation/getDatasetCreationStatus
The "status" property is enum with possible values: "pending" "running" "finished" "error".
In this case, when the "status" value is "error", this is what is shown:

But the creation is not "in progress", it has been interrupted by the error.
The proposal to fix:
if the value of "status" in the response is "error" change the message to:
"Dataset creation has been interrupted due to error: <value of lastMessage>"
Moreover, the auto-refresh of status (currently every 15 seconds) should stop when the status change to "error".
This is an example of response for GET /datasets/{id}/creationStatus:
The specification is here: https://eucaim-node.i3m.upv.es/dataset-service/api-doc#tag/datasets/operation/getDatasetCreationStatus
The "status" property is enum with possible values: "pending" "running" "finished" "error".
In this case, when the "status" value is "error", this is what is shown:

But the creation is not "in progress", it has been interrupted by the error.
The proposal to fix:
if the value of "status" in the response is "error" change the message to:
"Dataset creation has been interrupted due to error: <value of lastMessage>"Moreover, the auto-refresh of status (currently every 15 seconds) should stop when the status change to "error".