mirror of
https://github.com/friendica/friendica
synced 2024-12-26 23:46:18 +01:00
API: Not implemented stuff should return 404
This commit is contained in:
parent
42db861759
commit
e895d3b1eb
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue