Fix 307 handling, introduce strict302Handling, close #2423