summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.packaging/org.eclipse.jgit.target/pom.xml
Commit message (Expand)AuthorAgeFilesLines
* Prepare 3.7.0-SNAPSHOT buildsMatthias Sohn2014-12-241-1/+1
* Prepare 3.6.1-SNAPSHOT buildsMatthias Sohn2014-12-231-1/+1
* JGit v3.6.0.201412230720-rv3.6.0.201412230720-rMatthias Sohn2014-12-231-1/+1
* Prepare post 3.6.0-m1 buildsMatthias Sohn2014-11-121-1/+1
* JGit v3.6.0.201411121045-m1v3.6.0.201411121045-m1Matthias Sohn2014-11-121-1/+1
* Prepare 3.6.0-SNAPSHOT buildsMatthias Sohn2014-09-051-1/+1
* Prepare 3.5.0-SNAPSHOT buildsRobin Rosenberg2014-06-041-1/+1
* Prepare post 3.4.0 RC1 buildsMatthias Sohn2014-05-211-1/+1
* JGit v3.4.0.201405211411-rc1v3.4.0.201405211411-rc1Matthias Sohn2014-05-211-1/+1
* Prepare 3.4.0-SNAPSHOT buildsMatthias Sohn2014-05-061-1/+1
* JGit v3.4.0.201405051725-m7v3.4.0.201405051725-m7Matthias Sohn2014-05-051-1/+1
* Prepare 3.4.0-SNAPSHOT buildsMatthias Sohn2014-03-051-1/+1
* Prepare 3.3.1-SNAPSHOT buildsMatthias Sohn2014-03-051-1/+1
* JGit v3.3.0.201403021825-rv3.3.0.201403021825-rMatthias Sohn2014-03-031-1/+1
* Prepare post 3.3.0RC1 buildsMatthias Sohn2014-02-201-1/+1
* JGit v3.3.0.201402191814-rc1v3.3.0.201402191814-rc1Matthias Sohn2014-02-201-1/+1
* Prepare 3.3.0-SNAPSHOT buildsMatthias Sohn2013-12-051-1/+1
* Introduce Kepler and Luna target platformMatthias Sohn2013-11-121-1/+28
* Prepare 3.2.0-SNAPSHOT buildsMatthias Sohn2013-10-031-1/+1
* Prepare post 3.1.0 buildsstable-3.1Matthias Sohn2013-10-031-1/+1
* JGit v3.1.0.201310021548-rv3.1.0.201310021548-rMatthias Sohn2013-10-021-1/+1
* Prepare post 3.1.0 RC1 buildsMatthias Sohn2013-09-271-1/+1
* JGit v3.1.0.201309270735-rc1v3.1.0.201309270735-rc1Matthias Sohn2013-09-271-1/+1
* Prepare 3.1.0-SNAPSHOT buildsMatthias Sohn2013-06-131-1/+1
* Add jgit target platform to define dependencies more preciselyMatthias Sohn2013-06-021-0/+58
30'>backport/47914/stable30 Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
summaryrefslogtreecommitdiffstats
path: root/lib/public/appframework/http/notfoundresponse.php
blob: 968df6c310c5ba2a5ae6c244ee285e2d7dbdb9e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/**
 * @author Lukas Reschke <lukas@owncloud.com>
 * @author Morris Jobke <hey@morrisjobke.de>
 *
 * @copyright Copyright (c) 2015, ownCloud, Inc.
 * @license AGPL-3.0
 *
 * This code is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License, version 3,
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License, version 3,
 * along with this program.  If not, see <http://www.gnu.org/licenses/>
 *
 */

namespace OCP\AppFramework\Http;

use OCP\AppFramework\Http;
use OCP\Template;

/**
 * A generic 404 response showing an 404 error page as well to the end-user
 * @since 8.1.0
 */
class NotFoundResponse extends Response {

	/**
	 * @since 8.1.0
	 */
	public function __construct() {
		$this->setStatus(404);
	}

	/**
	 * @return string
	 * @since 8.1.0
	 */
	public function render() {
		$template = new Template('core', '404', 'guest');
		return $template->fetchPage();
	}
}