in the ContentNegotiation source there is a commen...
# ktor
in the ContentNegotiation source there is a comment saying
// Respond with "415 Unsupported Media Type" if content cannot be transformed on receive
but when i send a json body to my server where one field name is misspelled, I get a 500 internal server error reply instead.
it seems 415 is only for unsupported content types. ktor should throw a 400 instead. i think jackson should throw a
but that one is internal. or it could subclass ContentTransformationException and throw that. ContentTransformationException could maybe have a field for the http status code that should be returned.