Temporary set 404 to avoid backtrace:
authorRoland Haeder <roland@mxchange.org>
Wed, 1 Apr 2015 14:27:55 +0000 (16:27 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 1 Apr 2015 14:27:55 +0000 (16:27 +0200)
------------------------------
Fehlermeldung: No HTTP status set!
------------------------------
Backtrace:
1.:template-functions.php:1311, debug_get_mailable_backtrace(0)
2.:wrapper-functions.php:1242, reportBug(3)
3.:http-functions.php:55, getHttpStatus(0)
4.:template-functions.php:158, sendHttpHeaders(0)
5.:filters.php:711, outputHtml(0)
6.:debug_get_mailable_backtrace:1074, FILTER_FLUSH_OUTPUT(1)
7.:filter-functions.php:332, call_user_func_array(2)
8.:functions.php:1724, runFilterChain(2)
9.:footer.php:60, doShutdown(0)
10.:inc-functions.php:133, include(1)
11.:inc-functions.php:141, loadInclude(1)
12.:api.php:71, loadIncludeOnce(1)
------------------------------
Abfrage-String: /api/statuses/public_timeline.atom
------------------------------

Signed-off-by: Roland Haeder <roland@mxchange.org>
api.php

diff --git a/api.php b/api.php
index dedbd9c5f9dfe332a20dc3a0ee7d4ae4d277a2fc..0efa75357c1ebb0b257c7ff8c14135d509aed425 100644 (file)
--- a/api.php
+++ b/api.php
@@ -48,6 +48,9 @@ $GLOBALS['__module']      = 'api';
 $GLOBALS['__header_sent'] = 2;
 $GLOBALS['__footer_sent'] = 2;
 
+// Temporary set HTTP 404 here. This will be removed once this stuff is ready.
+setHttpStatus('404 Not Found');
+
 // Load config file
 require('inc/config-global.php');