protected function doDelete(\Symfony\Component\HttpFoundation\Request $request, \Symfony\Component\HttpFoundation\Response $response)
 {
     $protocol = $request->getProtocol();
     $message = 'Request method not supported';
     if (substr($protocol, -3) == '1.1') {
         $response->sendError(\Symfony\Component\HttpFoundation\Response::SC_METHOD_NOT_ALLOWED, $message);
     } else {
         $response->sendError(\Symfony\Component\HttpFoundation\Response::SC_BAD_REQUEST, $message);
     }
 }