DEV Community

Discussion on: Why some API response codes are subjective ?

Collapse
 
anjankant profile image
Anjan Kant • Edited

200 Status code is the best practice while the search data or empty result set, if you pass any other like 400 status code - The most generic code out of the 4xx series **which indicates that the **request received is a bad one so 400 status code can't apply and moreover SEO viewpoint it's also bad practice. you may go deeply about status code with following link Status codes