4xx Client Error
The thing you're looking for doesn't exist here. It's like knocking on a door and nobody's home.
Use 404 when the server cannot find the target resource and is not making a stronger permanence claim.
GET https://api.example.test/api/users/99999404 Not Found
# Headers
Content-Type: application/json
# Body
{
"error": "not_found"
}No user exists with ID 99999 in the database
GET https://api.example.test/api/usres/123404 Not Found
# Headers
Content-Type: application/json
# Body
{
"error": "not_found"
}The endpoint '/api/usres' doesn't exist (should be '/api/users')