coreos/fleet — pull request #938 by npcode (2014-10-03 03:41:59+00:00)
Title: api: Fix an incorrect status code; 406 -> 415

"406 Not Acceptable" is not proper because it is for a request whose
Accept header is not acceptable. Use "415 Unsupported Media Type"
instead.

See for "406 Not
Acceptable" and for
"415 Unsupported Media Type".

(I am very sorry that I couldn't test it. I made this patch while I'm reading your code by just curiosity as a web programmer because @jonboulle told me you have web api. :smiley: Feel free to merge it or not)