Raise proper HTTP error when flavor doesn't exist

Instead of failing with error 500, raise a proper error and let the user
know that queue creation has failed because the flavor passed in the
metadata does not exist.

Change-Id: I2c41ba1aa790707d9a05c205a09e4b0306c13c78
Merge "Raise proper HTTP error when flavor doesn't exist"