dotcloud/docker — pull request #5070 by jbbarth (2014-04-08 03:36:50+00:00)
Title: Improve error message when using a wrong Content-Type on container creation

This is a proposal for improving error message, as requested in #2515

As a first contribution, I'd be happy if someone told me:
- if this should be put elsewhere ? (for instance factored in `makeHttpHandler` ?)
- if this can be tested easily ; I didn't found tests for error messages in `api/server/server_unit_test.go` but if you have any pointer I'd be happy to add unit tests for this...

Thanks