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

Change status code from 500 to 400 for well-defined errors (if possible to do cleanly) #80

Open
stroxler opened this issue Apr 7, 2018 · 0 comments

Comments

@stroxler
Copy link
Contributor

stroxler commented Apr 7, 2018

It looks like two different well-defined user errors result in a status code of 500

  • specifying a nonexistent docker image
  • trying to run on a nonexistent ECS cluster

Ideally, we would report a 400 on these user errors. A caveat is that I'm not sure that's possible to do cleanly unless flotilla keeps track of the permitted images and clusters, since failing to find an existing docker image or flotilla cluster really should result in a 500 rather than a 400

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

1 participant