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 <http://tools.ietf.org/html/rfc7231#section-6.5.6> for "406 Not
Acceptable" and <http://tools.ietf.org/html/rfc7231#section-6.5.13> for
"415 Unsupported Media Type".
api: return error generated by validateContentType
api: assert validateContentType wired up
Merge pull request #941 from bcwaldon/status-code

StatusUnsupportedMediaType instead of StatusNotAcceptable