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
1
vote
1 answer

What can I fix to avoid this error in apache error log: "File does not exist: /www/site/[object Object]:,"?

I have many errors in my apache error log like this: [Mon Mar 26 08:12:52 2012] [error] [client 92.xx.xxx.xxx] File does not exist: /www/site/[object Object]:, referer: http://site.com/ I can't figure out, what makes this error. How can i fix…
nrob
  • 340
  • 3
  • 13
1
vote
1 answer

Wordpress: redirect all 404's from one directory to index page of that directory

There are some Wordpress plugins for permanent redirection of all 404's to the main blog URL (plugin '404 Redirection') or all 404's to one specified page (plugin '404-to-start'). Also, it can be done by adding following code to the theme's 404.php…
young_coder
  • 35
  • 1
  • 6
1
vote
2 answers

Kohana 2 Custom 404 error pages

In Kohana 2 you can override the default error page by creating a custom kohana_error_page.php file and putting it in your view directory. However, this overrides ALL errors not just 404's. In the case of 500 errors, I'd still like to get the…
Ray
  • 40,256
  • 21
  • 101
  • 138
1
vote
1 answer

Sending two request for a 404 file

The page can be viewed in browser as given below. The firebug says that they send two request for the…
Mohammed H
  • 6,880
  • 16
  • 81
  • 127
1
vote
1 answer

Force drupal to return 200

Is it possible to link to a page that doesn't necessarily exists as drupal content and not get a 404 page not found. Example: link: example.com/search/projects?content="words" There is no search/projects node or page so obviously it returns page not…
Pedro
  • 208
  • 3
  • 14
1
vote
1 answer

404 when request has url params in Glassfish

Can't for the life of me figure this out. I deploy an application to glassfish 3.1.2. I put a test file in the application's folder at the same level as WEB-INF called test.html Now when I access the file like…
mwrf
  • 3,599
  • 1
  • 14
  • 10
1
vote
2 answers

MVC ignoring CustomErrors and redirects for 404 errors

I have two websites, A and B, very similar in configuration and both running on ASP.NET MVC 3. Both have an ErrorController and the following web.config settings for CustomErrors: For both…
1
vote
1 answer

Rescuing HTTP 404 Mechanize::ResponseCodeError Exceptions with Cucumber, Mechanize, Webrat

I was put in charge of testing a non-rails web application using cucumber. I have basic testing up and running, I.E. I can do things like Then /^the page should have a header$/ do response_body.should have_xpath(%\//header\) end The next thing…
1
vote
2 answers

How can I debug "/mysite/null" resource request?

I've been trying to work out why our pages load slowly, and one thing I've noticed in Fiddler is that each page load for /mysite/mypage.aspx brings with it a request for GET /mysite/null HTTP/1.1, resulting in a 404 error. I'm guessing this 404…
kasey
  • 553
  • 7
  • 21
1
vote
2 answers

In Java, how can I avoid an HTTP 404 getting a file:// URL with special characters in it?

First I'll provide a tiny code snippet here: String path = "".equals(url.getPath()) ? "/" : url.getPath(); java.io.File f = new java.io.File(path); if (!f.exists()) { this.code = 404; // http Not Found return; } Here, the URL's type is…
omg
  • 136,412
  • 142
  • 288
  • 348
1
vote
2 answers

URL Routing issue with Javascript (Jquery) call to MVC3 Controller/Action/ID, returning 404, should get JSon

Question: How do I code the URL passed to javascript so that in the built/deployed version the code will go to the controller/action with the id and return the JSon data, like it works in the Visual Studio environment? Goal: to return dates to the…
1
vote
2 answers

Subdomain with Subdirectory 404 page

On most websites, with subdomains, when I go to forum.example.com I get the correct page but when I go to example.com/forum I get a 404 page. Can someone tell me how they do that? Do they point the subdomain to a different folder in the root? Like…
iMayne
  • 51
  • 1
  • 2
  • 9
1
vote
1 answer

ASP.NET MVC Json 404 Response

Similar questions have been asked over and over but for some reason none of the things I have tried have worked. I have an ajax application and when the user request an invalid url I would like to return a JsonResult that looks something like…
Nick Olsen
  • 6,299
  • 11
  • 53
  • 75
1
vote
6 answers

SEO help for replacing a website

I run a small e-commerce site that over the last few years has built up a reasonable search engine status. I've been working on a new site that uses new URL formats and I am worried about how to deal with all the broken links and customer…
Remmus
  • 505
  • 3
  • 9
1
vote
0 answers

shadowbox 3.0.3 - provide 404 error message if the image to be opened in shadowbox cannot be found

I am using shadowbox to open up and display a larger version of the image than the one clicked on to initiate the plugin. Everything works fine... However my image are dynamic, so a image source that I reference to could easily be missing from the…
Naztee
  • 23
  • 3
1 2 3
99
100