I think ktor is really lacking in error handling. for example if you send a json body with one misspelled field it just returns 500 without any useful information (i made a pr to fix this).
or when you send a jwt token in a wrong format (“Bearer: <token>” instead of “Bearer <token>“) it logs 2 stacktraces with the error message “java.lang.IllegalArgumentException: invalid authScheme value: it should be token”