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
25
votes
13 answers

Angular 6 Failing To Load Images From Assets

For some reason I can't get my images to show in my app. This is the error, tests and class: The error: GET http://localhost:4200/assets/image.png 404 (Not Found)
Frank
  • 2,109
  • 7
  • 25
  • 48
25
votes
1 answer

Azure website returns 404 error after adding custom domain

I'm using the Azure Websites hosting in shared mode. After going through the process of adding a custom domain I seem to be getting a 404 when browsing to www.mydomain.example When I browse to my site using the *.azurewebsites.example address it…
Rob Bird
  • 3,764
  • 2
  • 28
  • 38
25
votes
7 answers

Suppressing 404s in retina.js library

We use the js lib retina.js which swaps low quality images with "retina" images (size times 2). The problem is, that retina.js throws a 404 for every "retina" image which can't be found. We own a site where users can upload their own pictures which…
j7nn7k
  • 17,995
  • 19
  • 78
  • 88
24
votes
3 answers

Avoid warnings on 404 during django test runs?

Just upgraded to Django 1.3. My test suite is now showing a bunch of useless warnings like this every time I check that a given URL is 404. It didn't do that under Django 1.2. For example, let's say we have views and URLs wired up such that this…
slinkp
  • 3,406
  • 2
  • 21
  • 18
24
votes
12 answers

CodeIgniter 404 Page Not Found, but why?

I am using CodeIgniter for two applications (a public and an admin app). The important elements of the document structure…
Joseph
  • 9,171
  • 8
  • 41
  • 67
24
votes
2 answers

Capture 404 status with jQuery AJAX

I have this code: $.ajax({ cache: false, url: "/Admin/Contents/GetData", data: { accountID: AccountID }, success: function (data) { $('#CityID').html(data); }, error: function (ajaxContext) { …
Alan2
  • 23,493
  • 79
  • 256
  • 450
23
votes
7 answers

404 page in REACT

I created the component NotFound and it works fine when I go to a page that doesn't exist. But the same page it's appearing in all my pages, not only the one that doesn't exist. This is the component: import React from 'react' const NotFound = ()…
Lizz Parody
  • 1,705
  • 11
  • 29
  • 48
23
votes
7 answers

404 header - HTTP 1.0 or 1.1?

Why does almost every example I can find (including this question from about a year ago) say that a 404 header should be HTTP/1.0 404 Not Found when we've really been using HTTP 1.1 for over a decade? Is there any reason not to send HTTP/1.1 404…
keithjgrant
  • 12,421
  • 6
  • 54
  • 88
23
votes
3 answers

Flask tutorial - 404 Not Found

I just finished the Flask basic tutorial (here) and even though I've done completed every step, when I am trying python flaskr.py what I get is a 404 Not Found error saying The requested URL was not found on the server. If you entered the URL…
user3725561
23
votes
4 answers

Web API interface works locally but gets 404 after deployed to Azure Website

I'm working on a ASP.NET MVC 4 website. Together with MVC controllers, I have one API controller which contains an ajax GET API interface. It works perfectly when debugged locally with visual studio. However, after I deployed it as an Azure…
23
votes
9 answers

Visual Studio 2012 Web Deploy to Windows Server 2008 R2 with IIS 7 and /msdeploy.axd 404 error

In Visual Studio 2012 RC when I try to validate a Web Deploy connection I get this error message: ERROR_DESTINATION_NOT_REACHABLE The required Web Management Service is started on the server and Web Deploy 3.0 RC is installed. Then using Remote…
22
votes
9 answers

Docker registry 2.0 API v2

I pulled and setup the local docker registry:2.0 I have tried pushing an image successfully, but when ever I try searching for an image I get 404: root@ip-10-232-0-153:~# curl -v -X GET http://localhost:5000/v2/search * Hostname was NOT found in DNS…
alexfvolk
  • 1,810
  • 4
  • 20
  • 40
22
votes
10 answers

How to callback a function on 404 in JSON ajax request with jQuery?

I want to make an Ajax request with response in JSON. So I made this Ajax request: $.ajax({ url: 'http://my_url', dataType: "json", success: function(data){ alert('success'); }, error: function(data){ alert('error'); …
shingara
  • 46,608
  • 11
  • 99
  • 105
22
votes
1 answer

Coldfusion 10, IIS 7.5 - Getting a 404 even though file exists

I'm getting a 404 even though the page exists on disk. I've ran the Web Server Configuration Tool and rebooted several times. Handler mapping for .cfm files (configuration tool seems to have…
TechFanDan
  • 3,329
  • 6
  • 46
  • 89
22
votes
1 answer

Custom 404 using Spring DispatcherServlet

I've set up web.xml as below. I also have an annotation-based controller, which takes in any URL pattern and then goes to the corresponding jsp (I've set that up in the -servlet.xml). However, If I go to a page that ends in .html (and whose jsp…
njdeveloper
  • 1,465
  • 3
  • 13
  • 16