diff --git a/Component/Listener/AccessDeniedExceptionFactory.php b/Component/Listener/AccessDeniedExceptionFactory.php index aad96d1..4cf61e5 100644 --- a/Component/Listener/AccessDeniedExceptionFactory.php +++ b/Component/Listener/AccessDeniedExceptionFactory.php @@ -19,6 +19,6 @@ class AccessDeniedExceptionFactory implements AccessDeniedExceptionFactoryInterf { public function createAccessDeniedException() { - return new HttpException(500, 'flood control - login blocked'); + return new HttpException(429, 'flood control - login blocked'); } } diff --git a/features/bootstrap/FeatureContext.php b/features/bootstrap/FeatureContext.php index 5d5c6bf..de7c8f0 100644 --- a/features/bootstrap/FeatureContext.php +++ b/features/bootstrap/FeatureContext.php @@ -138,6 +138,6 @@ public function iCircumventLoginWithAnd($username, $password) */ public function iShouldBeBlocked() { - WebTestCase::assertSame(500, $this->getMainContext()->getSession()->getStatusCode()); + WebTestCase::assertSame(429, $this->getMainContext()->getSession()->getStatusCode()); } }