I would like to display some addition text on a page if its a result of a 404 Not Found code. I'd like to reuse the rest of page somewhere else.
<div>
<?php
if(page_is_404_redirect)
{
<div>Oh no, I couldn't find what you were looking for.</div>
}
>?
...
</div>
I didnt find anything on the $_SERVER variable page that seemed to indicate the error code result. How can I check the error code status?