diff --git a/.gitignore b/.gitignore
index d547762df19ee107fb91316a4f10e3ff7d793e98..394f4c4c845875d30515ec29ae05e6faeeb7b3fe 100755
--- a/.gitignore
+++ b/.gitignore
@@ -13,6 +13,7 @@ modules/convert/batch/scripts/launch_fulltext_letterbox.sh
 modules/convert/batch/scripts/launch_convert_letterbox.sh
 modules/convert/batch/config/config_only_indexes.xml
 modules/convert/batch/tmp/
+modules/visa/xml/remoteSignatoryBooks.xml
 dist/
 node_modules/
 package-lock.json
diff --git a/src/app/user/controllers/UserController.php b/src/app/user/controllers/UserController.php
index 7561849591dca74479375f6df1e4b2f5b2330236..262a0eaddf1234a6ea87e577eac683d4da286077 100755
--- a/src/app/user/controllers/UserController.php
+++ b/src/app/user/controllers/UserController.php
@@ -1369,7 +1369,12 @@ class UserController
             ]);
 
             if ($curlResponse['code'] != '200') {
-                return $response->withStatus(400)->withJson(['errors' => $curlResponse['response']['errors']]);
+                if (!empty($curlResponse['response']['errors'])) {
+                    $errors =  $curlResponse['response']['errors'];
+                } else {
+                    $errors =  $curlResponse['errors'];
+                }
+                return $response->withStatus(400)->withJson(['errors' => $errors]);
             }
         } else {
             return $response->withStatus(403)->withJson(['errors' => 'maarchParapheur is not enabled']);
@@ -1459,7 +1464,12 @@ class UserController
             }
 
             if ($curlResponse['code'] != '204') {
-                return $response->withStatus(400)->withJson(['errors' => $curlResponse['response']['errors']]);
+                if (!empty($curlResponse['response']['errors'])) {
+                    $errors =  $curlResponse['response']['errors'];
+                } else {
+                    $errors =  $curlResponse['errors'];
+                }
+                return $response->withStatus(400)->withJson(['errors' => $errors]);
             }
         } else {
             return $response->withStatus(403)->withJson(['errors' => 'maarchParapheur is not enabled']);