]> git.mxchange.org Git - friendica.git/commitdiff
API: Not implemented stuff should return 404
authorMichael <heluecht@pirati.ca>
Wed, 11 Nov 2020 20:28:36 +0000 (20:28 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 11 Nov 2020 20:28:36 +0000 (20:28 +0000)
include/api.php

index 09184dcf9167a0023359a967f8ab4b4f64ed31ab..87ce982b099fb9f5667160354315096dbe8cdc54 100644 (file)
@@ -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);