diff --git a/freepbx/var/www/html/freepbx/rest/modules/mobiles.php b/freepbx/var/www/html/freepbx/rest/modules/mobiles.php
index 3df92e7cf..4f6cbb70e 100644
--- a/freepbx/var/www/html/freepbx/rest/modules/mobiles.php
+++ b/freepbx/var/www/html/freepbx/rest/modules/mobiles.php
@@ -49,7 +49,7 @@
' WHERE userman_users.username = \''. $username. '\'';
$mobile = $dbh->sql($sql, 'getOne', \PDO::FETCH_ASSOC);
if ($mobile == false) {
- return $response->withStatus(404);
+ return $response->withJson(null,200);
}
return $response->withJson($mobile, 200);
diff --git a/freepbx/var/www/html/freepbx/rest/modules/nethlink.php b/freepbx/var/www/html/freepbx/rest/modules/nethlink.php
index 243710562..a4ccadc90 100644
--- a/freepbx/var/www/html/freepbx/rest/modules/nethlink.php
+++ b/freepbx/var/www/html/freepbx/rest/modules/nethlink.php
@@ -32,7 +32,7 @@
if (!empty($extension)) {
return $response->withJson($extension, 200);
} else {
- return $response->withStatus(404);
+ return $response->withJson(null,200);
}
});
diff --git a/freepbx/var/www/html/freepbx/rest/modules/physicalextensions.php b/freepbx/var/www/html/freepbx/rest/modules/physicalextensions.php
index ead056230..250531c68 100644
--- a/freepbx/var/www/html/freepbx/rest/modules/physicalextensions.php
+++ b/freepbx/var/www/html/freepbx/rest/modules/physicalextensions.php
@@ -204,7 +204,7 @@
if (!empty($extension)) {
return $response->withJson($extension, 200);
} else {
- return $response->withStatus(404);
+ return $response->withJson(null,200);
}
});
diff --git a/freepbx/var/www/html/freepbx/rest/modules/voicemails.php b/freepbx/var/www/html/freepbx/rest/modules/voicemails.php
index 3220edebd..e306241df 100644
--- a/freepbx/var/www/html/freepbx/rest/modules/voicemails.php
+++ b/freepbx/var/www/html/freepbx/rest/modules/voicemails.php
@@ -41,7 +41,7 @@
$res = FreePBX::Voicemail()->getVoicemail();
if (is_array($res['default']) && !array_key_exists($extension, $res['default'])) {
- return $response->withStatus(404);
+ return $response->withJson(null,200);
}
return $response->withJson($res['default'][$extension], 200);
diff --git a/freepbx/var/www/html/freepbx/rest/modules/webrtc.php b/freepbx/var/www/html/freepbx/rest/modules/webrtc.php
index ca1cc8d3d..a2d102dd6 100644
--- a/freepbx/var/www/html/freepbx/rest/modules/webrtc.php
+++ b/freepbx/var/www/html/freepbx/rest/modules/webrtc.php
@@ -32,7 +32,7 @@
if (!empty($extension)) {
return $response->withJson($extension, 200);
} else {
- return $response->withStatus(404);
+ return $response->withJson(null,200);
}
});