DEV Community

Discussion on: When HTTP 200 OK from API endpoint returns "error"

Collapse
 
buinauskas profile image
Evaldas Buinauskas

Couldn't really guess.

But in such a case, it'd better to return 204. It's built for exactly this purpose, when request was successful and there's no payload that has to be brought back.