Compare commits

..

5 Commits

5 changed files with 7 additions and 5 deletions

View File

@ -69,7 +69,9 @@ function mdShortenerExceptionHandler(Throwable $exception):void {
$errorReporter = new MDErrorReporter("md:frontend", "bugs-frontend@museum-digital.de");
$errorCategory = MDErrorReporter::categorizeError($exception);
http_response_code(404);
if (headers_sent() === false) {
http_response_code(404);
}
switch ($errorCategory) {
case MDErrorReporter::MD_ERROR_KNOWN: