23👍
✅
You have to return 4xx HTTP status code if there is an error.
In your case, there is not so I think that 200 is the best response.
The RFC says when you have to return an error status code.
1👍
https://www.rfc-editor.org/rfc/rfc5789#section-2.1
you will return a 204 status code, which means "No Content" because you’re not returning a body in the response
Source:stackexchange.com