I have the following problem. If I create a request with invalid headers, my application will die before entering errormiddleware.
Such a request van be:
Where “0: 0” is the first header line.
In the $app->run() method, we’ll see that first the request is created and then the request will be handled. So the question is: What is the best way to handle such a user error which happens before entering Error Middleware?