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
22
votes
3 answers

404 error with wordpress ssl

SSL was installed on our server and our site is mostly wordpress and there are some non-wordpress pages which work fine with https:// and the home page works as well, but when I try to access a wordpress page/post I get 404 page not found error. I…
Jinsy Oommen
  • 229
  • 1
  • 3
  • 4
21
votes
1 answer

Does a non-empty message body in a "status 404" packet violate REST principles?

I was talking with a co-worker that for some reason wrote a framework from the ground up just because it wasn't able to automatically unmarshall a message body on a 404 HTTP Packet. He says that he's following REST principles. My guess is that a…
Paulo Victor
  • 906
  • 2
  • 10
  • 18
21
votes
5 answers

Angular - The requested URL /home was not found on this server

I am gonna be very brief. I have an Angular project with simple navigation menu (routerLinks). Everything work as it is supposed to if it is on localhost, powered by angular cli. But when I deploy it on a real server (i don't have any VPS or any…
Pavel Franta
  • 1,273
  • 2
  • 11
  • 24
21
votes
6 answers

angularjs html5mode refresh page get 404

I've created an app using AngularJS with GAE (Google App Engine – Java). I want to convert it compatible with SEO. index.html and the body is loaded dynamically through
user2625111
  • 213
  • 1
  • 2
  • 5
21
votes
4 answers

How to setup a 404 page in Phalcon

How can I set a 404 page in Phalcon to be displayed when a controller/action does not exist?
Nikolaos Dimopoulos
  • 11,495
  • 6
  • 39
  • 67
21
votes
8 answers

How to return 'own' 404 custom page?

In case if error occurred on my web site I do the following: Server.Transfer("/error.aspx"); and that page has code: protected void Page_Load(object sender, EventArgs e) { ... Response.StatusCode = 404; } If I work on the…
Budda
  • 18,015
  • 33
  • 124
  • 206
20
votes
5 answers

Mercurial: Why do I get a 404 error when pushing to a repository whose URL I can hit in a browser?

I have a Mercurial repository that I can see just fine if I navigate to it in a browser, but when I try to do a push, with my default path set to the same URL that I visit in the browser, I get this: abort: HTTP Error 404: Not Found Should the URL…
Mike Pateras
  • 14,715
  • 30
  • 97
  • 137
20
votes
6 answers

How to solve "Page not found (404)" error in Django?

My project is named homefood, and when I runserver I get this error.Anybody have any clue how to fix this error. Page not found (404) Request Method: GET Request URL: http://127.0.0.1:8000/ Using the URLconf defined in homefood.urls, Django…
20
votes
6 answers

How to solve a "HTTP Error 404.3 - Not Found" error?

Simple problem. I start up VS2008 and create a new WCF Service application. This will create a default application with a few test methods showing it works. I press CTRL+F5 and it does indeed work! Great! However, it uses the Visual Studio…
Wim ten Brink
  • 25,901
  • 20
  • 83
  • 149
20
votes
4 answers

404 Http error handler in Asp.Net MVC (RC 5)

How can I Handler 404 errors without the framework throwing an Exception 500 error code?
MrByte
  • 313
  • 1
  • 3
  • 9
19
votes
4 answers

CodeIgniter 2.1 issue with show_404() and 404_override

I have been working with CodeIgniter for quite a while now and I'm currently doing a project for a client that would like a custom 404 page. Everything is fine and the 404_override it works great. My issue comes when a visitor is trying to access a…
Casper O
  • 252
  • 1
  • 2
  • 9
19
votes
2 answers

HTTP 404 vs 400 for invalid query parameters

Here is my request URL: http://server.com/app/user/getuser/?userId=9999 Note that userId is query parameter. Not embedded path parameter. I understand that if the request URL is: http://server.com/app/user/getuser/9999 and the ID 9999 does not exist…
LHA
  • 9,398
  • 8
  • 46
  • 85
19
votes
1 answer

Accessing original URL in IIS7 404 redirect page

I have an .aspx page as my custom 404 page on a site set up on IIS 7. I need to retrieve the original URL that the user was trying to access in order to do some processing on the 404 page. The trick is that I need to specifically handle 404's that…
mclark1129
  • 7,532
  • 5
  • 48
  • 84
19
votes
3 answers

Lets Encrypt ACME Challenge file not accessable from IIS

I have been trying to generate a SSL certificate for one of our projects which is running on an Azure VM which has no IP restrictions. However, the challenge file which is generated throws a 404 error and is not accessible over the web. I have tried…
vishal vazkar
  • 340
  • 1
  • 2
  • 15
19
votes
4 answers

how show personalized error with get_object_or_404

I would like to know how to show personalized errors with the get_object_or_404 method. I don't want the normal Http404 pages, but I want to display a custom message with the message: the result is none. Thanks :)
Asinox
  • 6,747
  • 14
  • 61
  • 89