@@ -111,7 +111,7 @@ private function authenticate(array $configuration): array
111111 $ password = $ this ->keyValueService ->getValue ($ configuration ['password ' ]);
112112
113113 if (4 !== count (array_filter ([$ tenantId , $ clientId , $ username , $ password ]))) {
114- throw new NotAcceptableException ('tenantId, clientId, username, password must all be set. ' , 400 );
114+ throw new NotAcceptableException ('tenantId, clientId, username, password must all be set. ' );
115115 }
116116
117117 $ url = self ::LOGIN_ENDPOINT .$ tenantId .self ::OAUTH_PATH ;
@@ -303,13 +303,13 @@ function (CacheItemInterface $item) use ($now): \DateTime {
303303 );
304304
305305 if ($ lastRequestDateTime ->add (new \DateInterval (self ::CACHE_LIFETIME_QUICK_BOOK_SPAM_PROTECT )) > $ now ) {
306- throw new TooManyRequestsException ('Service unavailable ' , 503 );
306+ throw new TooManyRequestsException ('Service unavailable ' );
307307 }
308308
309309 $ interactiveSlideConfig = $ this ->interactiveService ->getInteractiveSlideConfig ($ tenant , $ interactionRequest ->implementationClass );
310310
311311 if (null === $ interactiveSlideConfig ) {
312- throw new NotAcceptableException ('InteractiveSlideConfig not found ' , 400 );
312+ throw new NotAcceptableException ('InteractiveSlideConfig not found ' );
313313 }
314314
315315 // Optional limiting of available resources.
@@ -469,7 +469,7 @@ private function getValueFromInterval(string $key, InteractionSlideRequest $inte
469469 $ value = $ interval [$ key ] ?? null ;
470470
471471 if (null === $ value ) {
472- throw new BadRequestException ("interval.'. $ key.' not set. " , 400 );
472+ throw new BadRequestException ("interval.'. $ key.' not set. " );
473473 }
474474
475475 return $ value ;
@@ -514,13 +514,13 @@ private function getAllowedResources(InteractiveSlideConfig $interactive): array
514514 $ key = $ configuration ['resourceEndpoint ' ] ?? null ;
515515
516516 if (null === $ key ) {
517- throw new NotAcceptableException ('resourceEndpoint not set ' , 400 );
517+ throw new NotAcceptableException ('resourceEndpoint not set ' );
518518 }
519519
520520 $ resourceEndpoint = $ this ->keyValueService ->getValue ($ key );
521521
522522 if (null === $ resourceEndpoint ) {
523- throw new NotAcceptableException ('resourceEndpoint value not set ' , 400 );
523+ throw new NotAcceptableException ('resourceEndpoint value not set ' );
524524 }
525525
526526 return $ this ->interactiveSlideCache ->get (self ::CACHE_ALLOWED_RESOURCES_PREFIX .$ interactive ->getId (), function (CacheItemInterface $ item ) use ($ resourceEndpoint ) {
0 commit comments