code); } catch (DoesNotExistError $e) { header("HTTP/1.1 404 Not Found"); header("Content-Type: text/plain; charset=UTF-8"); echo "404 - Not found."; }