Back to Status Codes
Client Error (4xx)

HTTP 404 Not Found

The requested resource could not be found on the server.

404

Not Found

The requested resource could not be found on the server.

What Causes HTTP 404?

  • URL path is incorrect or misspelled
  • Resource has been deleted or never existed
  • Incorrect API endpoint version
  • Resource ID is invalid or does not exist
  • Missing route or endpoint not implemented

Code Examples

See how HTTP 404 responses look in different programming languages and tools.

curl -X GET https://api.example.com/users/99999
# Response: 404 Not Found (user does not exist)

How to Fix HTTP 404

  • Verify the URL path and resource ID are correct
  • Check API documentation for the correct endpoint
  • Ensure the resource exists before requesting it
  • Implement proper error handling for 404 responses
  • Use API versioning correctly (e.g., /v1/, /v2/)

Related Status Codes

Test Your APIs

Frequently Asked Questions

What does HTTP 404 mean?

The requested resource could not be found on the server.

What causes HTTP 404?

URL path is incorrect or misspelled. Resource has been deleted or never existed. Incorrect API endpoint version. Resource ID is invalid or does not exist. Missing route or endpoint not implemented

How to fix HTTP 404?

Verify the URL path and resource ID are correct. Check API documentation for the correct endpoint. Ensure the resource exists before requesting it. Implement proper error handling for 404 responses. Use API versioning correctly (e.g., /v1/, /v2/)

http 404not found errorhttp status codesapi error handlingrest api client error