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

422 error when adding a workflow without name #97

Open
MaelAudren opened this issue Dec 22, 2017 · 0 comments
Open

422 error when adding a workflow without name #97

MaelAudren opened this issue Dec 22, 2017 · 0 comments

Comments

@MaelAudren
Copy link
Contributor

When a user wants to add a workflow to the bucket without name the returned exception is 422 unprocessable entity. It would be more relevant to have a Bad Request 400 error.
That exception is returned because the server consider that when a name is not provide, the user should provide a zip file. This ambiguity relies on the request double purpose, on one hand it handles archive on the other hand it handles workflows.
The solution would be split the current request into two requests.

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

1 participant