Dick Dowdell
Feb 16, 2022

--

Thanks, Ted. You raise an excellent point. This is how our organization's RESTful API manual covers the data not found condition:

204

No Content

The request was successful (PUT, PATCH, DELETE, GET) but there is no data to return. A 404, Not Found, could be used for GET, but it can make coding easier if the 400 series is used only for error conditions and Not Found is not an error as long as the resource type is valid.

--

--

Dick Dowdell
Dick Dowdell

Written by Dick Dowdell

A former US Army officer with a wonderful wife and family, I’m a software architect and engineer who has been building software systems for 50 years.

Responses (1)