aspdotnet_404_200_for_request.md - brainchildservices/curriculum GitHub Wiki
SLIDE-1
HTTP Response Status Code
When a search engine or website visitor makes a request to a web server, a three digit HTTP Response Status Code is returned. This code indicates what is about to happen.
SLIDE-2
What is ERROR 404?
The HTTP error 404, or more commonly called "404 error", means that the page you are trying to open could not be found on the server. This is a client-side incident which means either the page has been deleted or moved, and the URL has not been modified accordingly, or that you have misspelled the URL.
Lets Say You have a Simple Asp.Net Core Webapp. When you Open it you can find a folder called Pages. In Pages Folder you can find files with .cshtml
extensions. Most Commonly in a Simple Webapp you can find Index.cshtml
and Privacy.cshtml
. if you run the app and you navigate to the URL https://localhost:5001/index1
you'll get an ERROR 404
. this is Because in our Project there is no pages named Index1.cshtml.
Example:- A man walks into a store looking for a particular model water gun. In this scenario, he is greeted by a Sales Associate called 200(our response codes).
SLIDE-2(DOWNWARDS)
404 Not Found
SLIDE-3
What is ResponseCode 200?
An HTTP status code 200 means success. The client has requested documents from the server. The server has replied to the client and given the client the documents. All is well.
Example:- A man walks into a store looking for a particular model water gun. In this scenario, he is greeted by a Sales Associate called 404(our response codes).