liveBook · Manning

HTTP 404 error

Also called 404 Not Found, http 404 status code, Not Found error

An HTTP 404 Not Found response indicates that the server cannot find a current representation of the requested resource or is unwilling to disclose that one exists.

How 3 Manning books explain it

ASP.NET Core in Action, 3e

The HTTP 404 status code indicates that the server cannot find the resource or endpoint identified by the request path.

How it is used
Uses 404 to signal missing entities or unmatched endpoints in APIs and user-facing applications.
How deep it goes
Explains 404 generation and application handling, including middleware placement and error-page alternatives.
Examples
Uses a fruit lookup, an invalid URL, and a missing product to illustrate 404 responses.
What you can do after
Apply it via ASP.NET Core results and status-code middleware, and test responses with Swagger UI.

Read how ASP.NET Core in Action, 3e explains HTTP 404 error →

Django in Action

HTTP 404 Not Found is an HTTP response status indicating that the requested resource could not be found.

How it is used
Handles public URLs that request missing database objects by returning a standard not-found response.
How deep it goes
Explains lookup, exception conversion, response handling, customization, and status-code testing, but not HTTP protocol internals.
Examples
Uses musician IDs, the Steve Vai detail page, nonexistent ID 100, and a test request for nonexistent ID 10.
What you can do after
Diagnose missing-resource behavior and test it by asserting that a Django client response has status code 404.

Read how Django in Action explains HTTP 404 error →

The Design of Web APIs, Second Edition

404 is the HTTP status code indicating that the requested resource could not be found.

How it is used
Signals a missing path-identified resource to API consumers and can avoid disclosing the existence of an inaccessible resource.
How deep it goes
Works through status selection, contrasting 404 with 204, 400, and 403, and shows its OpenAPI response definition.
Examples
Uses missing products in DELETE requests, missing cars in GET requests, and inaccessible bank accounts.
What you can do after
Evaluate/understand it by selecting 404 for missing resources and weighing disclosure before choosing 404 or 403 for inaccessible ones.

Read how The Design of Web APIs, Second Edition explains HTTP 404 error →

Also covered in

What to know first

Related concepts

Questions about HTTP 404 error

What is HTTP 404 error?

An HTTP 404 Not Found response indicates that the server cannot find a current representation of the requested resource or is unwilling to disclose that one exists.

Which Manning books explain HTTP 404 error?

ASP.NET Core in Action, 3e, Django in Action and The Design of Web APIs, Second Edition.

What should I know before learning HTTP 404 error?

Manning books that teach HTTP 404 error usually introduce authorization, HTTP, HTTP request and OpenAPI specification first.

What is the difference between HTTP 404 error and 403 Forbidden?

An HTTP 404 Not Found response indicates that the server cannot find a current representation of the requested resource or is unwilling to disclose that one exists. 403 Forbidden is an HTTP response status indicating that the server understood a request but refuses to authorize the requested access or operation.

What is HTTP 404 error a kind of?

HTTP 404 error is a kind of HTTP status code. An HTTP status code is a standardized three-digit code in an HTTP response that indicates the outcome of processing a request.

What is HTTP 404 error also called?

HTTP 404 error is also called 404 Not Found, http 404 status code or Not Found error.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.