The Wayback Machine - https://web.archive.org/web/20241009133538/https://www.geeksforgeeks.org/history-of-the-404-error/
Open In App

History of The 404 Error

Last Updated : 20 Oct, 2022
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

HTTP stands for HyperText Transfer Protocol. It is invented by Tim Berners. HyperText is the type of text which is specially coded with the help of some standard coding language called HyperText Markup Language (HTML). HTTP/2 is the successor version of HTTP, which was published on May 2015. HTTP/3 is the latest version of HTTP, which is published in 2022.

HTTP Connection

 

Whether a specific HTTP request has been successfully completed is given by the HTTP response status codes. Responses are grouped into five classes. A 404 not found error is an HTTP status code that indicates that the browser was able to communicate with a given server, but the server could not find what was requested. This error may also occur if the URL is not recognized in the browser. The 404 error may also be sent from the server side to hide the existence of a resource from an unauthorized client instead of the 403 error. The 404 response code is probably the most well-known due to its frequent occurrence on the internet. 

 

Error 404

 

Most websites dedicate a custom 404 web page which is rendered when 404 errors occur.

Causes of Error 404:

  • If the content is deleted or moved to a different URL.
  • The URL is typed incorrectly by the user.
  • The requested domain name is no longer in use.
  • The domain name system (DNS) cannot convert the requested domain name to an Internet Protocol (IP) address.

Advantages of Custom 404 Page:

It may be confusing for the user to land on a generic error page when they searched for something else. A custom 404-page takes away the confusion. It lets the user know that there is an error that might have occurred due to mistyping the URL or that the page they were looking for might not be available at the moment. A perfectly designed 404 page helps the user to go back to a relevant page of the site. You may also provide useful links on the custom 404 page which would help the user to navigate to other pages of the site. Generally, a “redirect to homepage” link is put in to redirect the user back to the main site. This would not be possible with the default 404 page and result in a bad user experience. 



Similar Reads

Handling 404 Error in Flask
Prerequisite: Creating simple application in Flask A 404 Error is showed whenever a page is not found. Maybe the owner changed its URL and forgot to change the link or maybe they deleted the page itself. Every site needs a Custom Error page to avoid the user to see the default Ugly Error page. GeeksforGeeks also has a customized error page. If we t
4 min read
How to add a 404 Error Page in the Express ?
Express.js is a powerful framework for node.js. One of the main advantages of this framework is defining different routes or middleware to handle the client's different incoming requests. In this article, we will discuss how to add a 404 error page i.e not found using the express server. 404 is the status code which means not found in the server. I
1 min read
How to Customize the WordPress 404 Error Page?
A 404 error page is what your visitors see when they try to access a page that doesn't exist on your website. A well-designed 404 error page can enhance user experience and even help retain visitors by guiding them back to the main content of your site. In this article, we will walk you through the steps to customize the 404 error page in WordPress
5 min read
How to Create 404 Error Page in Bootstrap ?
Every website encounters errors sometimes, so it becomes important to show these errors in a presentable manner to the users. Creating a custom 404 error page using Bootstrap 5 can enhance the user experience when visitors encounter a page that doesn’t exist. Below are the types of 404 Error Page we can create in Bootstrap: Table of Content Simple
2 min read
How to setup 404 page in angular routing ?
To set up a 404 page in the angular routing, we have to first create a component to display whenever a 404 error occurred. In the following approach, we will create a simple angular component called PagenotfoundComponent. Creating Component: Run the below command to create pagenotfound component. ng generate component pagenotfoundProject Structure:
2 min read
Explain mean of 404 not found HTTP response code ?
The browser and the site server have a conversation in the form of HTTP status codes. The server gives responses to the browser’s request in the form of a three-digit code known as HTTP status codes. The categorization of HTTP status codes is done in five sections which are listed below. Informational responses (100–199)Successful responses (200–29
2 min read
How to create custom 404 page in CodeIgniter ?
We often see the 404 error page while using websites. This error page will encounter only when we navigate to a broken link. In CodeIgniter, it is possible to create a custom 404 page to change the look of the 404 page. So in this article, we will look into how to create the custom 404 error page. In order to create a custom 404 error page, we need
2 min read
Create a 404 page using HTML and CSS
In this article, we will see how to create a 404 page using HTML and CSS. A user when trying to access a URL that doesn't exist or has been moved. Instead of presenting a generic error message a custom 404 page can enhance the user experience and even add a touch of creativity to your website. ApproachCreate a basic HTML structure with a standard t
2 min read
How to setup 404 page in React Routing ?
Every Website needs a 404 page if the URL does not exist or the URL might have been changed. To set up a 404 page in the angular routing, we have to first create a component to display whenever a 404 error occurs. In the following approach, we will create a simple react component called PagenotfoundComponent.  Prerequisites:NPM & Node JSReact J
2 min read
How to Redirect 404 errors to a page in Express.js ?
Express Js is a web application framework based on Node.js web server functionality that helps us to create web servers with lesser complexity and in a well-organized manner. Express provides routing services that help us in creating application endpoints that respond based on the HTTP request method (GET, POST, DELETE, etc) and the requested route
2 min read
How To Redirect To Home Page instead Of Displaying 404 Page in Gatsby?
In Gatsby when a user navigates to a non-existent page, they typically see a 404 error page. However, there may be situations where you want to redirect users to the home page (or another specified page) instead of showing the 404 error page. This can be useful for improving the user experience or handling specific routing needs. In this article, w
3 min read
How To Create 404 Pages in Tailwind CSS?
Creating a 404 error page using Tailwind CSS is simple and effective. Tailwind CSS allows you to quickly style and layout your page using its utility-first CSS framework. In this article, we'll see the process of designing a custom 404 page with an engaging design to keep users informed and on track when they land on a page that page doesn’t exist.
2 min read
How to retrieve error message using Exception class in PHP when error occurred ?
Exception handling is the important part of PHP in which we deal with how to maintain the flow of the program if there is an error or exception that occurs during the compilation. As you know we can handle the exception by throw, try-catch, die method so now we understand how to retrieve the error message using exception class by given below exampl
2 min read
Difference between throw Error('msg') and throw new Error('msg')
The throw statement allows you to create an exception or a custom error. The exception can be like a Javascript string, a number, a boolean, or an object. So, If you use this statement together with the try...catch statement. It allows you to control the flow of the program and generate accurate error messages. For example: throw "too small" (throw
3 min read
Difference between Type Error and Reference Error in JavaScript
JavaScript is one of the most popular programming languages in the world, and it is used by millions of developers to create dynamic and interactive web applications. However, like any programming language, JavaScript is not without its quirks and pitfalls. Two common issues that developers often encounter when working with JavaScript are Type Erro
6 min read
Error Handling with Error Boundary Hooks
In the world of web development handling errors effectively is crucial for providing a seamless user experience. React one of the most popular JavaScript libraries provides a powerful feature known as Error Boundary Hooks that allows developers to handle errors in their applications. In this article, we will explore how Error Boundary Hooks can be
2 min read
How to Fix "macOS: xcrun: error: invalid active developer path, missing xcrun" error?
Encountering the "macOS: xcrun: error: invalid active developer path, missing xcrun" error can be frustrating, especially when you need to get development tasks done swiftly. This error commonly occurs when the Xcode Command Line Tools are not properly installed or when their path is corrupted. Before diving into the solutions, it’s important to un
2 min read
Express Returns Servers HTML Error Page Instead of res.json Error Message
When building APIs with Express.js, you might encounter a situation where instead of returning a JSON error message, your server returns an HTML error page. This can be frustrating, especially when your application relies on consistent JSON responses. In this article, we'll explore why this happens and how to ensure that Express.js returns a JSON e
4 min read
How to get history changes notification via history.pushState() method ?
The task is to detect the changes in the browser's history whenever history.pushState() method is called. To detect the changes in the browser's history whenever history.pushState() method is called, we would have to monkey-patch (change the behavior of existing function similar to overriding) an object called window.history. We will then insert so
3 min read
JavaScript/TypeScript: Standard way to keep the cause of an Error
In this article, we will try to understand that what's the standard way to keep the cause of an Error in JavaScript (or in TypeScript) with the help of certain coding examples. Since there is no such provision provided in JavaScript/TypeScript where directly we may be able to find out the cause of an error (like no such property or in-built method
2 min read
Javascript Error and Exceptional Handling With Examples
An error is an action that is inaccurate or incorrect. There are three types of errors in programming which are discussed below: Syntax errorLogical errorRuntime error Syntax error: According to computer science, a syntax error is an error in the syntax of a sequence of characters or tokens that is intended to be written in a particular programming
3 min read
Different error handling in "Promise.resolve" vs "new Promise" constructor
In JavaScript, there are two ways to create a promise: using the Promise.resolve method or using the new Promise constructor. While both ways achieve the same result, they handle errors differently. Promise.resolve: The Promise.resolve method takes in a value and returns a promise that is resolved with that value. If the value is a promise, the ret
3 min read
JavaScript is showing reference error "Prompt is not defined"
In this article, we cover the reference error that is "Prompt is not defined". It's important to understand the tools you are using. I know, this can be very overwhelming in the beginning. but here, we will solve this reference error with not only one solution but also make more ways to done properly. window.prompt() instructs the browser to displa
2 min read
How to remove error Call to undefined function curl_init()?
Problem: Call to undefined function curl_init()? Solution: This error occurs when cURL library is not installed on your system or enabled in your PHP installation. In order to resolve this error, install cURL library. For Linux - Terminal Command : sudo apt-get install php-curl For Windows: Download cURL library from Official Website Go to your php
1 min read
Throwing an Error "cannot read property style of null" in JavaScript
In this article, we will see how we may receive an error "cannot read property style of null" in JavaScript, along with understanding the cause to get this error with the help of an example, and thereafter we will try to understand how we may correct it with certain small changes in the code snippet. When we are trying to access one property i.e. e
3 min read
Click() method not working and Console returns an error message in JavaScript
In this article, we will see "Uncaught TypeError: document.getElementsByClassName(...).click is not a function" error created while using click() method in JavaScript. The TypeError is an object that represents an error that arises when the operation can not be performed due to the value is not of the expected type. Approach: First double-check tha
2 min read
The 'new' operator in Javascript for Error Handling
In this article, we will see new operator usage during error throwing as well as handling the error() method in JavaScript using theoretical as well as coding examples. JavaScript new operator: The new operator is actually a special operator that is used along with the error() method which is the method for the error class used to instantiate any s
3 min read
JavaScript Error message Property
In JavaScript error message property is used to set or return the error message. Syntax: errorObj.message Return Value: It returns a string, representing the details of the error. More example codes for the above property are as follows: Below is the example of the Error message property. Example 1: C/C++ Code try { allert("A computer science
1 min read
JavaScript Error name Property
In JavaScript, the Error name property is used to set or return the name of an error. Syntax: errorObj.name Property values: This property contains six different values as described below: SyntaxError: It represents a syntax error.RangeError: It represents an error in the range.ReferenceError: It represents an illegal reference.TypeError: It repres
2 min read
Where does PHP store the error log? (php5, apache, fastcgi, cpanel)
The location of the error log file can be check by using phpinfo() function. Create a simple PHP file containing phpinfo() function and run it. It will display the information about PHP configuration. <?php phpinfo(); ?> Run the above program and search for error_log directive using f3 on chrome. This will show the location of the logfile. Fo
2 min read
Article Tags :