The default error handler is very basic. It sets the Response status code to 500. The default error handler can also include detailed error diagnostic information. To enable this you need to set the
displayErrorDetails setting to true. Details.
$configuration = [
'settings' => [
'displayErrorDetails' => true,
Second option is to check the server error logfiles.