We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc6a209 commit 1c80068Copy full SHA for 1c80068
Controller/GraphqliteController.php
@@ -12,6 +12,7 @@
12
use GraphQL\Executor\Promise\Promise;
13
use GraphQL\Server\StandardServer;
14
use GraphQL\Upload\UploadMiddleware;
15
+use function in_array;
16
use function json_decode;
17
use Psr\Http\Message\ServerRequestInterface;
18
use RuntimeException;
@@ -131,6 +132,10 @@ private function decideHttpStatusCode(ExecutionResult $result): int
131
132
$code = 400;
133
} else {
134
$code = $error->getCode();
135
+ if (!isset(Response::$statusTexts[$code])) {
136
+ // The exception code is not a valid HTTP code. Let's ignore it
137
+ continue;
138
+ }
139
}
140
$status = max($status, $code);
141
0 commit comments