Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What error code should be returned if a required field is not provided? #299

Open
vjleo opened this issue Oct 18, 2021 · 3 comments
Open

Comments

@vjleo
Copy link

vjleo commented Oct 18, 2021

Also, what is the return code if it has an invalid value?

like a "" (empty) Title of a Topic?

@Amoki
Copy link

Amoki commented Oct 18, 2021

HTTP says a 400 BAD REQUEST is the way to go

@GeorgDangl
Copy link
Member

Yeah, 400 would feel right for me.

@GeorgDangl
Copy link
Member

I'll update the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants