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
2 answers

Python Flask getting 404 Not Found Error

I am designing this simple website using Flask. But I am getting a 404 error for my hello method. Whenever I click on the button "rate artists," it's giving me the error, but templates for home.html, hello.html, and artist.html are all correct. I do…
user1848861
  • 37
  • 1
  • 5
2
votes
1 answer

Can I redirect to a valid Wicket page when attempting to access a non-existent page?

Introduction If a user of my Apache Wicket web application (which runs on GAE/J) attempts to visit a non-existent page, for example: http://[MyURL]/admin/PageSubscribeX the web framework logs the following…
Ian Marshall
  • 760
  • 4
  • 14
2
votes
0 answers

Magento 404 is redirecting to home page instead of 404

In Magento, I've got a problem with my 404 page not showing up. For example, the following URL will redirect to the home page http://www.site.com/page_does_not_exist However, if I add the trailing slash the page will show the correct 404…
2
votes
1 answer

404 errors in the Symfony2 logs caused by an "OPTIONS" http request

We delivered some times ago in production a Symfony2 project. In the prod.log file we have that 404 error quite a lot of time: [2012-10-17 13:10:03] request.ERROR: Symfony\Component\HttpKernel\Exception\NotFoundHttpException: No route found for…
COil
  • 7,201
  • 2
  • 50
  • 98
2
votes
3 answers

JQuery AJAX throws 404 for an existing url

I'm using Jquery ajax to call a CodeIgniter function: $.ajax({ type: "POST", dataType:'json', beforeSend: function() { $("#opc").addClass("opacity"); $("#searching").show(); }, url: "search/get_results", …
Matanya
  • 6,233
  • 9
  • 47
  • 80
2
votes
2 answers

Spring MVC: I set the default page but the spring always should me the configuration files do not find

I try run a basic Java EE Spring project on eclipse(jboss 7.1.1 server, Spring 3.1.2 released), but when it always print that the configuration file do not find but I Actually put the configuration file in right place. I do not configure the…
user504909
  • 9,119
  • 12
  • 60
  • 109
2
votes
2 answers

Nancy Routes resulting in 404

I inherited a WCF project containing some badly constructed routes (which work) that I need to migrate into a new NancyFx project. I need to be able to define routes in my Nancy app that respond to the same GET requests. I cannot change the routes…
John L
  • 305
  • 2
  • 3
  • 15
2
votes
3 answers

gii 404 error. Unable to use Gii

Following http://www.yiiframework.com/doc/blog/1.1/en/prototype.scaffold tutorial, it mentions to add some code to /blog/protected/config/main.php return array( ...... 'import'=>array( 'application.models.*', …
Gravy
  • 12,264
  • 26
  • 124
  • 193
2
votes
0 answers

Random 500 & 404 errors - Gitlab

I get random friendly 500 and 404 errors on my Gitlab installation. Everything works fine except that. It is really annoying, sometimes the pages work, sometimes I need to refresh the page a couple of times for it to display. Here's the errors I get…
LBridge
  • 2,135
  • 5
  • 21
  • 32
2
votes
0 answers

Got 404 error when rewrite URL using UrlRewritingNet in IIS 7

I using UrlRewritingNet dll from http://www.urlrewriting.net/ But I got the 404.0 not found error: Module IIS Web Core Notification MapRequestHandler Handler StaticFile Error Code 0x80070002 Here is Handle mapping of StaticFile…
Gk.
  • 121
  • 3
2
votes
1 answer

How to compare settings of two websites on one IIS7.5 server

I have two websites running on one server in IIS7.5 and would like to find a way to compare the settings each one has. (I see the question has already been asked for IIS6.) I want to do this so I can see why one website is handling HTTP 404 errors…
Magnus Smith
  • 5,895
  • 7
  • 43
  • 64
2
votes
0 answers

Using IIS 7.5 Express to launch MVC 3 application, gives HTTP Error 404.20 - Not Found

I have an existing MVC3 application and I want to run that using IIS 7.5 express. When I try to do that I get the following error: HTTP Error 404.20 - Not Found No default document. Most likely causes: •A default document is not configured for the…
2
votes
2 answers

Apache redirect 404 for only the files that are not found?

What I'm looking to do is basically take all requests to a directory, and if the file exists, send it. If not, send it from the parent directory (assume it exists there). The files are large and there can be a lot, and the subdirectories will…
mark
2
votes
2 answers

Magento incorrect 404 redirect

Magento is redirecting any 404 errors to the admin login. In the admin settings I have the no route setting set to a CMS page that I confirmed exists. I have been fighting with this for a week. Cleared cache, reindex, rebuilt url rewrites, etc...…
Tyler
  • 668
  • 1
  • 8
  • 22
2
votes
1 answer

404 Pages when tampering with the extention of the page

I have a Sitecore solution, where we handle 404 requests. We do that by setting "ErrorPage" and the "ItemNotFoundUrl" in the web.config: And
Lars Holdgaard
  • 9,496
  • 26
  • 102
  • 182