Use Whoops\Handler\JsonResponseHandler to return JSON error data for AJAX requests