Use 403 status code on MethodNotAllowedException.

This commit is contained in:
samizdam 2016-11-10 21:05:00 +03:00
parent b5ccecad93
commit 5eb1dfa98d

View File

@ -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);
}