@@ -39,11 +39,9 @@ |
||
| 39 | 39 | try { |
| 40 | 40 | $response = $this->router->dispatch($request->getMethod(), $request->getUri()->getPath()); |
| 41 | 41 | $response = $response->withStatus(200); |
| 42 | - } |
|
| 43 | - catch (HttpRouteNotFoundException $e) { |
|
| 42 | + } catch (HttpRouteNotFoundException $e) { |
|
| 44 | 43 | return $response->withStatus(404); |
| 45 | - } |
|
| 46 | - catch (BadRouteException $e) { |
|
| 44 | + } catch (BadRouteException $e) { |
|
| 47 | 45 | return $response->withStatus(405); |
| 48 | 46 | } |
| 49 | 47 | return $next($request, $response); |