diff --git a/src/Servers/Reverb/Http/Server.php b/src/Servers/Reverb/Http/Server.php index 1574803d..cc0f1509 100644 --- a/src/Servers/Reverb/Http/Server.php +++ b/src/Servers/Reverb/Http/Server.php @@ -70,6 +70,8 @@ protected function createRequest(string $message, Connection $connection): ?Requ $request = Request::from($message, $connection); } catch (OverflowException $e) { $this->close($connection, 413, 'Payload too large.'); + } catch (Throwable $e) { + $this->close($connection, 400, 'Bad request.'); } return $request ?? null;