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

404 with spaces in the urls

I've realized that Yahoo search doesn't correctly handle spaces in URLs. When a user click to go to my website page that contains spaces, yahoo replaces them with '+' symbol. My server doesn't correctly handle '+' instead of ' ', and generate 404…
Surfer on the fall
  • 721
  • 1
  • 8
  • 34
2
votes
1 answer

Camel : jetty as input, soap as output

I would like to do a simple code with camel, to redirect an URL listener to a soap web service. I have a simple PHP helloWorld SOAP web service available. I would like to type http://localhost:8080/test and to be routed to the external SOAP web…
2
votes
2 answers

How can I handle 404 error with GWT?

I have a GWT 2.4 web-application. I want to handle the HTTP error-codes in the following way: depending on the code send user to different GWT pages. Yes, I understand that GWT has only one dynamical page, so I want to use Places for this. I added …
KutaBeach
  • 1,445
  • 21
  • 43
2
votes
0 answers

XAMPP Error with using ErrorDocument in .htaccess

I am using a .htaccess file for a short url system that I made. It is supposed to use a file, sudir.php, to find the url that the "code" that was entered is for. But whenever I goto the page at http://localhost/shorturl/t10m3S which doesn't exist so…
2
votes
2 answers

How to programmatically serve HTTP 404 from ASP.NET code-behind and redirect to 404 page?

I've got an ASP.NET app that sometimes redirects to a 404 page if requested content isn't found. This is done something like this: var data = MyDatabase.RetrieveData(dataID); if (data == null) Response.Redirect("~/My404Page.aspx"); This works…
Tom Hamming
  • 10,577
  • 11
  • 71
  • 145
2
votes
2 answers

Magento index page loads but 404 errors on all others

Currently I am struggling with the categories and products showing 404 errors when I navigate away from the working home page. I was able to install Magento and I am using a copy of an existing working site. The purpose is to use this new site as…
dj22
  • 245
  • 6
  • 18
2
votes
2 answers

ASP.NET site Custom 404 Error blocked by Server Error

I have an MVC3 website and I'm trying to get the 404 error pages to show correctly. I've got it all set up that it does not redirect the URL, returns an actual 404 error status in the header, logs the URL, is a custom page I've created, and is an…
2
votes
1 answer

iOS5: authentication over https

I am using the below code in iPhone application for authentication with the server over https. Authentication is happening on the web browser,but when I am trying to authenticate from iPhone application, the server response code in 404. Using the…
2
votes
3 answers

How to add additional query string parameters when 404 redirect occurs

We are currently using a custom error page for 404 errors for our Web App. When the redirect occurs aspxerrorpath contains the path the user was trying to access. Is it possible to catch the error in Application_Error within Global.asax and append a…
bflemi3
  • 6,698
  • 20
  • 88
  • 155
2
votes
2 answers

Return 404 for other IP addresses other then mine in ASP.NET

I am testing my ASP.net website online, but I don't want it to be accessible to anyone, just from my IP address. How I can return 404 or something for people that aren't from my IP address. Developing my site in ASP.net 4 and C#. Or whether it can…
Liron Harel
  • 10,819
  • 26
  • 118
  • 217
2
votes
0 answers

JSF JSF1064: Unable to find or serve resource,

In my jsf 2 (primefaces 3) application, I designed and used a page not found (404) for any request that is not match a page. I works fine for all requests except for the jsf resources such as "jquery.js.jsf". When this resource is requested without …
Azad
  • 399
  • 2
  • 6
  • 15
2
votes
2 answers

ASP.NET Application Error Overriding 404?

I use the Application_Error event to catch and log errors in my app. The Error is logged, then a friendly error screen is displayed: Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs) Dim ex As New Exception( _ …
Pete Michaud
  • 1,813
  • 4
  • 22
  • 36
2
votes
2 answers

python api - shopify.Variant 404 Error

Trying to create a new Variant using the python lib. After creating a shopify session I simply try to create a Variant instance as per the docs session = shopify.Session('') session.token =…
stardog101
  • 41
  • 2
2
votes
3 answers

Umbraco Custom 404 Error Page Not Working

I am using using Umbraco 4.7 and my server is IIS7 was wondering what is not going right for me. I basically want to make a custom error page (404) and everything I have tried is not working, checked the forums, but it is still showing the same…
Paul Stewart
  • 53
  • 1
  • 7
2
votes
1 answer

Kentico CMS: Page not found URL

Kentico CMS I have created a custom 404 page to redirect to when someone hits a 404/page not found error. And then in Site Manager > Settings > Content I have added the URL location for this custom page. Now when I try to navigate to a page that…
Dave Haigh
  • 4,369
  • 5
  • 34
  • 56