Make sure that the create endpoint does not always return 200 even in case of a failure. Some of the code had to be massaged since encoding a report implies sending a 200. Fixes: #15828 Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
github.com/ghodss/yaml
sigs.k8s.io/yaml