Use 403 status code on MethodNotAllowedException.
This commit is contained in:
parent
b5ccecad93
commit
5eb1dfa98d
@ -34,7 +34,7 @@ class Router implements HttpServerInterface {
|
||||
try {
|
||||
$route = $this->_matcher->match($request->getPath());
|
||||
} catch (MethodNotAllowedException $nae) {
|
||||
return $this->close($conn, 403);
|
||||
return $this->close($conn, 405);
|
||||
} catch (ResourceNotFoundException $nfe) {
|
||||
return $this->close($conn, 404);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user