Invalid request is invalid, so maybe it should actually fail on bad request, but it is too deep for talking about it here.
I just wondered why it is here, because I didn't see any JSON parsing here.