Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F108378331
Aphront404Response.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Apr 16, 08:34
Size
565 B
Mime Type
text/x-php
Expires
Fri, Apr 18, 08:34 (2 d)
Engine
blob
Format
Raw Data
Handle
25564145
Attached To
rPH Phabricator
Aphront404Response.php
View Options
<?php
/**
* @group aphront
*/
final
class
Aphront404Response
extends
AphrontHTMLResponse
{
public
function
getHTTPResponseCode
()
{
return
404
;
}
public
function
buildResponseString
()
{
$failure
=
new
AphrontRequestFailureView
();
$failure
->
setHeader
(
'404 Not Found'
);
$failure
->
appendChild
(
'<p>The page you requested was not found.</p>'
);
$view
=
new
PhabricatorStandardPageView
();
$view
->
setTitle
(
'404 Not Found'
);
$view
->
setRequest
(
$this
->
getRequest
());
$view
->
appendChild
(
$failure
);
return
$view
->
render
();
}
}
Event Timeline
Log In to Comment