Questions tagged [http-status-code-404]

The HTTP status code 404 or "Not Found" indicates the server could not find the requested file or resource.

A 404 often means that the URL requested is invalid or points to a file that no longer exists (e.g. has been moved or deleted). It can also mean that web service method or other similar resource does not exist.

Many web servers can be configured to display a specific error page when this occurs which allows users to continue navigating in a manner consistent with the design of the website.

See RFC2616 for reference.

Microsoft's Internet Information Services (IIS) versions 7, 7.5, and 8.0 provide additional sub-status values for various types of 404 response statuses. These are not recognized as standard status codes, but may be relevant for IIS-hosted applications.

Microsoft Sub-Status Codes:

404.0 – Not found.
404.1 – Site Not Found.
404.2 – ISAPI or CGI restriction.
404.3 – MIME type restriction.
404.4 – No handler configured.
404.5 – Denied by request filtering configuration.
404.6 – Verb denied.
404.7 – File extension denied.
404.8 – Hidden namespace.
404.9 – File attribute hidden.
404.10 – Request header too long.
404.11 – Request contains double escape sequence.
404.12 – Request contains high-bit characters.
404.13 – Content length too large.
404.14 – Request URL too long.
404.15 – Query string too long.
404.16 – DAV request sent to the static file handler.
404.17 – Dynamic content mapped to the static file handler via a wildcard MIME mapping.
404.18 – Query string sequence denied.
404.19 – Denied by filtering rule.
404.20 – Too Many URL Segments.

6856 questions
2
votes
1 answer

Umbraco 4.11.3 : Client side form upload (multipart/form-data) gives 404

I'm using umbraco with extensionless urls. I've inserted a simple piece of HTML in one of my masterpages (en/test) :
When I press the submit button, I get a 404.…
Gerhard Schreurs
  • 663
  • 1
  • 8
  • 19
2
votes
1 answer

wordpress returns a 404 when i call php file with jquery ajax

I have php file for adding email addresses to a newslist the file is in my wp-content/plugins directory my file is called add_subscriber.php i think my htaccess block this file for some reason my htaccess file is as follow IndexIgnore .htaccess…
Andy Jacobs
  • 15,187
  • 13
  • 60
  • 91
2
votes
3 answers

Protocol Host showing in our Error Log / 404 Errors

I'm getting an error showing up in my error logs over and over. I see it in an error log in cpanel as well as in an AW stats report. The errors look like…
Kevin
  • 1,685
  • 7
  • 28
  • 55
2
votes
2 answers

Let apache handle 404 error when deemed appropriate by PHP?

I perfectly know how to create a custom 404 page in PHP, however I'm wondering if there's a way to give back control to to apache and let it produce the proper 404 page, sending right headers, etc. when my logic says so? I'm looking at some apache…
mark
  • 6,308
  • 8
  • 46
  • 57
2
votes
2 answers

Simple Login System using CodeIgniter returning 404 on login

I am trying to get my head around PHP and using the CodeIgniter Framework. I have recently been following this tutorial: http://www.codefactorycr.com/login-with-codeigniter-php.html I went through it very methodically and was careful to ensure I…
Javacadabra
  • 5,578
  • 15
  • 84
  • 152
2
votes
3 answers

Ajax submit getting 404 error but URL is correct

I have an ajax form with a submit button, but when I click on the submit button I get a 404 page not found error. Part of my view: @using (Ajax.BeginForm("Index", "Maps", null, ajaxOptions, new { @class = "form-search" })) { ... ... …
PeteGO
  • 5,597
  • 3
  • 39
  • 70
2
votes
3 answers

404 error on custom domain in blogger without using www

My website http://www.thelyricsworld.com is registered through godaddy. The site is hosted on blogger.com. I followed all the instructions to configure the dns in godaddy account. Currently the dns settings are: A record: thelyricsworld.com .......…
Dibin
  • 1,508
  • 1
  • 15
  • 19
2
votes
1 answer

Custom 404 page - does it need a 404 header?

In my project, I'm routing all requests to index.php. Then I check $_SERVER['REQUEST_URI'] against a whitelist and display the relevent content. Now, if the $_SERVER['REQUEST_URI'] does not match anything in my whitelist, I display some "page not…
Lars
  • 7,908
  • 11
  • 52
  • 70
2
votes
0 answers

Tomcat class load exception after bytecode injection

I inject a invoke statement(cajolingMe.cajoleMe();) to One of the webgoat's class(HammerHead.class). This method is a static method that called from a jar file which crated by fat-jar. I copy that jar to lib directory of [webgoat][3] web…
2
votes
1 answer

Orchard Cms Custom 404 wont display within normal page Layout

I have created a custom 404 and a custom error page on my Orchard CMS site as described on David Haydan's Blog The custom template works fine. However the Error shows up with out any of the normal page layout. or styling How do I use my default…
Axe
  • 764
  • 6
  • 29
2
votes
2 answers

404 error page showing HTTP Status 200 instead of 404

I have the following code for performing redirection. If my $includeFile does not exist it will redirect to a 404 page. This is a snippet from my index.php if ( !file_exists($includeFile) ) Header( "HTTP/1.1 404 Page Not Found" ); Header(…
user1187
  • 2,116
  • 8
  • 41
  • 74
2
votes
1 answer

.htaccess file can't find 404 ErrorDocument

The .htaccess file I have is unable to find my 404.html document in a sub-folder called "error". The line in particular is: ErrorDocument 404 /error/404.html However, if I place 404.html in the same directory as .htaccess and change the line…
Sparx401
  • 55
  • 2
  • 7
2
votes
2 answers

Laravel Put Route Giving 404 Error

So I have been trying to use the "put" method in my routing, I have followed this example directly from the "routes.php" file: Route::put('hello/(:any)', function($name) { return "Welcome, $name."; }); This returns a 404 error, I really want…
Tom Bird
  • 999
  • 3
  • 17
  • 31
2
votes
1 answer

Is this an abusive fix to 404 and 50in Java based webbapp?

I am reformatting my site due to constant side-effects of illness. I can not afford the time it takes to do hand written-tutorials and thus am replacing everything with video format only. All my content is on a Tomcat server. I have a lot of linkage…
thejartender
  • 9,339
  • 6
  • 34
  • 51
2
votes
4 answers

header('HTTP/1.1 404 Not Found'); does nothing

Trying to redirect a page to my custom 404 error document, but in vain. Heres the code header('HTTP/1.1 404 Not Found', true, 404); But it stays on the same page even though the header information changes as required HTTP/1.1 404 Not Found Date:…
sanchitkhanna26
  • 2,143
  • 8
  • 28
  • 42