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.
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.
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
- Build Financial Software with Generative AI (From Scratch)
- Vanilla WebIn early access (MEAP)
- The Well-Grounded Python Developer: How the pros use Python and Flask
- Grokking Web Application Security
- Build Your Own Robot: Using Python, CRICKIT, and Raspberry Pi
What to know first
- authorizationAuthorization is the determination of which actions or resources an identity or other entity is permitted to access under defined permissions or policies.
- HTTPHTTP is an application-layer protocol that defines request-and-response communication for transferring resource representations and related metadata between networked systems.
- HTTP requestAn HTTP request is a message sent by a client to a server using the Hypertext Transfer Protocol, specifying a method and target and optionally including headers and a body.
- OpenAPI specificationThe OpenAPI Specification is a machine-readable standard for describing HTTP APIs, including their operations, inputs, outputs, data structures, and security requirements.
Related concepts
- HTTP status codekind of · An HTTP status code is a standardized three-digit code in an HTTP response that indicates the outcome of processing a request.
- 403 Forbiddencontrasts with · 403 Forbidden is an HTTP response status indicating that the server understood a request but refuses to authorize the requested access or operation.
- 400 bad requestcontrasts with · HTTP 400 Bad Request is a client-error status code indicating that a server cannot or will not process a request because of a client-side error.
- breaking changeproduced by · A breaking change is a modification to an interface, behavior, format, configuration, or contract that can prevent existing consumers from working correctly without changes.
- endpointcontrasts with · An endpoint is an addressable interface of a service through which clients access a resource or invoke an operation, typically via a network request.
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.


