From e895d3b1eb348f1be1c8e926311a7e61b2ef024d Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 11 Nov 2020 20:28:36 +0000 Subject: [PATCH] API: Not implemented stuff should return 404 --- include/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/api.php b/include/api.php index 09184dcf91..87ce982b09 100644 --- a/include/api.php +++ b/include/api.php @@ -386,7 +386,7 @@ function api_call(App $a, App\Arguments $args = null) } Logger::warning(API_LOG_PREFIX . 'not implemented', ['module' => 'api', 'action' => 'call', 'query' => DI::args()->getQueryString()]); - throw new NotImplementedException(); + throw new NotFoundException(); } catch (HTTPException $e) { header("HTTP/1.1 {$e->getCode()} {$e->httpdesc}"); return api_error($type, $e, $args);