return new JsonResponse(null, Response::HTTP_NO_CONTENT
);
} private function handleException(TokenStruct
$token): ?Response
{ if ($token->
getException() === null
) { return null;
} if ($token->
getErrorUrl() === null
) { return null;
} $url =
$token->
getErrorUrl();
$exception =
$token->
getException();
if ($exception instanceof ShopwareException
) { return new RedirectResponse( $url .
(parse_url($url, \PHP_URL_QUERY
) ? '&' : '?'
) . 'error-code=' .
$exception->
getErrorCode() );
}