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

Return 404 if no face was detected #2

Open
luckydonald opened this issue Jun 29, 2017 · 0 comments
Open

Return 404 if no face was detected #2

luckydonald opened this issue Jun 29, 2017 · 0 comments

Comments

@luckydonald
Copy link

luckydonald commented Jun 29, 2017

Hey, awesome working docker container!

As it should be possible to know if a face was detected.
One way would be to return 404 status code if no faces were found.
As the current behavior is to return it (maybe resized), it would probably need a flag like ?require_detection=true?

Also possible would be

  • No faces detected: return image, 200 OK
  • was able to add a mustache: return image, 201 Created
luckydonald added a commit to luckydonald/funnyface that referenced this issue Jun 29, 2017
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