@@ -88,7 +88,7 @@ public function performAction(UserInterface $user, Slide $slide, InteractionSlid
88
88
return match ($ interactionRequest ->action ) {
89
89
self ::ACTION_GET_QUICK_BOOK_OPTIONS => $ this ->getQuickBookOptions ($ slide , $ interactionRequest ),
90
90
self ::ACTION_QUICK_BOOK => $ this ->quickBook ($ slide , $ interactionRequest ),
91
- default => throw new InteractiveSlideException ('Action not allowed ' ),
91
+ default => throw new InteractiveSlideException ('Action not allowed ' , 400 ),
92
92
};
93
93
}
94
94
@@ -103,7 +103,7 @@ private function authenticate(array $configuration): array
103
103
$ password = $ this ->keyValueService ->getValue ($ configuration ['password ' ]);
104
104
105
105
if (4 !== count (array_filter ([$ tenantId , $ clientId , $ username , $ password ]))) {
106
- throw new InteractiveSlideException ('tenantId, clientId, username, password must all be set. ' );
106
+ throw new InteractiveSlideException ('tenantId, clientId, username, password must all be set. ' , 400 );
107
107
}
108
108
109
109
$ url = self ::LOGIN_ENDPOINT .$ tenantId .self ::OAUTH_PATH ;
@@ -129,7 +129,7 @@ private function getToken(Tenant $tenant, InteractiveSlide $interactive): string
129
129
$ configuration = $ interactive ->getConfiguration ();
130
130
131
131
if (null === $ configuration ) {
132
- throw new InteractiveSlideException ('InteractiveSlide has no configuration ' );
132
+ throw new InteractiveSlideException ('InteractiveSlide has no configuration ' , 400 );
133
133
}
134
134
135
135
return $ this ->interactiveSlideCache ->get (
0 commit comments