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

REST bad code 422, change to 400 #715

Closed
essen opened this issue Jun 22, 2014 · 3 comments
Closed

REST bad code 422, change to 400 #715

essen opened this issue Jun 22, 2014 · 3 comments

Comments

@essen
Copy link
Member

essen commented Jun 22, 2014

Topic.

@bullno1
Copy link

bullno1 commented Jun 23, 2014

I think the issue is differentiating between entity being syntactically incorrect vs semantically incorrect. The current handler can only return false on error. How about we extend that to {false, Reason}? {false, syntax} or {false, format} would return 400 but {false, semantic} or {false, processing} would return 422.

Edit: I'm not suggesting we accept 2 reasons for each code, I just can't decide on a proper name.

@essen
Copy link
Member Author

essen commented Jun 23, 2014

422 is a webdav code, it is not defined for HTTP and clients will interpret it as 400 anyway.

@essen essen added 1.0 and removed 1.0 labels Jun 25, 2014
@essen
Copy link
Member Author

essen commented Jun 30, 2014

Done!

@essen essen closed this as completed Jun 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants