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

WCF Service Operation - GET Fails with 404

I have a WCF service which works on my dev machine running IIS 7, but my coworker is running IIS 5.1 (XP). He can view the service in a web browser when he navigates to the service page, but if he tries to call an operation or navigate to it in his…
Mark J Miller
  • 4,751
  • 5
  • 44
  • 74
2
votes
3 answers

jQuery trying to load a non existent ajax-loader.gif mod-rewrite doesn't work

If you visit this page in Chrome: http://www.immigrationconsult.org/contact.php And Inspect Element on the page, go to Console you will see this error: GET htt...cms/contact/images/ajax-loader.gif 404 (Not Found) jquery.min.js:4 I followed the…
Serj Sagan
  • 28,927
  • 17
  • 154
  • 183
2
votes
6 answers

WordPress RSS Feed Returning 404

We have an RSS feed (or we should have) via wordpress but it is just giving using a 404 Page Not Found on load - http://www.warrenaccess.co.uk/feed/rss2 We have tried changing back to default theme and deactivating all plugins to see if we could…
user786731
  • 161
  • 2
  • 4
  • 11
2
votes
3 answers

How to Manually throw error Pages in Play Framework?

How do I manually throw a 404 or 500 error in Play framework 1.2.x? I am currently rendering the 404.html and 500.html templates using renderTemplate() method. But how do I do it the proper way ?
Gautam
  • 7,868
  • 12
  • 64
  • 105
2
votes
1 answer

HTTP headers return 404 on non-www URL?

I'm doing PHP get_headers() on an mp3 file on my server and receive HTTP 404 when using the non-www address and HTTP 200 when using www. I can access the file from either address in the browser, so why the 404? Can I fix this somehow with…
Frankie Jarrett
  • 494
  • 7
  • 11
2
votes
4 answers

ExpressJS/Node: 404 images

I've set up a basic node/express server which serves public static javascript and css files fine, but returns a 404 error when attempting to serve images. The strangest part is that everything works fine when run locally. When run on my remote…
Greta Gail
  • 23
  • 1
  • 3
2
votes
2 answers

New App 404 - Very Basic Setup - URL Exists

I have created a new Facebook app. Whenever I visit the canvas page (https://apps.fac...) I get redirected to the Facebook 4oh4 page. The canvas URL is set to: https://mgnewmedia.com/brandgame/ Which you will see is as basic as it could possibly…
Mike
  • 8,767
  • 8
  • 49
  • 103
2
votes
1 answer

Identify 404 Source from within a page

I catch all 404 responses returned from my site (aspx 404 page) and log them. Is there a way for me to know if the request was made directly from the browsers' address bar, or referenced by clicking a link - or if it was requested as part of another…
JNF
  • 3,696
  • 3
  • 31
  • 64
2
votes
4 answers

Strange 404 error using spring mvc

This is a long shot but hopefully someone can help. My application is using spring framework mvc. 99% of if works properly. However when I attempt to go to one link lets call it [path]/link.html. I get a 404 error. If however, I go to this link…
IaCoder
  • 12,300
  • 11
  • 37
  • 45
2
votes
7 answers

How can I 404 a page when headers is already sent out?

I use php GET to check for an ID in an URL, then retrieve tekst from a database that matches that ID. This is the snippet of code that does that: function getLyric() { $id = (int)$_GET['id']; $query = mysql_query("SELECT * FROM lyrics WHERE id =…
user1333327
  • 795
  • 1
  • 6
  • 11
2
votes
2 answers

"404" for PUT method to WCF web service?

I have a PUT request which is returning a 404 error from my client, the code looks like this: { string uriupdatestudent = string.Format("http://localhost:8000/Service/Student/{0}/{1}/{2}", textBox16.Text, textBox17.Text,…
Kirsty White
  • 1,210
  • 3
  • 26
  • 54
2
votes
2 answers

How do I intercept a 404 error in PHP properly?

Essentially, what I am doing is intercepting a 404 using ErrorDocument in .htaccess, and pointing it at getFile.php. getFile then grabs the file name out of the url and searches for it in the mysql database, getting the data and applying…
Jerbot
  • 1,168
  • 7
  • 18
2
votes
0 answers

Smarty web site inner pages are not working

I am doing a task in a site which is done by other programmer in Smarty. Basic flow of my task In admin panel, the user upload a CSV file Using cron the CSV file data to be stored in MySQL database. It is a Godaddy's shared hosting. Right now the…
Senthil
  • 444
  • 1
  • 10
  • 23
1
vote
1 answer

Pass querystring to 404 page

I have error handling set up in IIS 7 to forward to a 404 page, but the querystring does not ever appear to be passed over. For example, this page does not exist so it directs to the 404 page: www.mysite.com/nonexistingpage.aspx?id=1 On the 404…
StronglyTyped
  • 2,134
  • 5
  • 28
  • 48
1
vote
1 answer

jsf 2.1.7 bug FacesFileNotFoundException instead of http status code 404

I use JSF 2.1.7 Mojarra. If I write an incorrect URL (a page that doesn't exist) in the address bar of the browser, in order to test that I'm redirected to my custom error page for http error 404, I get instead the following exception (error…
choquero70
  • 4,470
  • 2
  • 28
  • 48
1 2 3
99
100