I'm writing an API in Django Rest Framework.
I have a password reset endpoint that accepts one 'email' parameter. What if there is a key 'email' in the header, but the value was an empty string?
key: 'email'
value: ''
What status code should I return? 400, or maybe 204?
EDIT: I forgot to mention that this shouldn't be a validation failure. No authorization is needed for this endpoint. This is only serves to send a password reset email.