make badly parsed requests return 400 not throw exception to 500
+tests