Compare commits

...

7 Commits

6 changed files with 8 additions and 6 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: