Skip to content

Commit 60750bb

Browse files
committed
* 调整出错时的状态码
1 parent 930a228 commit 60750bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/HttpServer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ function () use ($controllerInstance, $methodName) {
250250
$controllerInstance->destroy();
251251
}
252252

253-
$response->status(500);
253+
$response->status($code);
254254
$response->end($error);
255255
}
256256
}

0 commit comments

Comments
 (0)