public function deleteContentType($contentTypeId) { $contentType = $this->contentTypeService->loadContentType($contentTypeId); try { $this->contentTypeService->deleteContentType($contentType); } catch (BadStateException $e) { throw new ForbiddenException($e->getMessage()); } return new Values\NoContent(); }