@RequestMapping(method = RequestMethod.DELETE, value = "/{id}") @ResponseStatus(HttpStatus.OK) @ResponseBody public StorageContainerDetail deleteStorageContainer(@PathVariable Long id) { RequestEvent<Long> req = new RequestEvent<Long>(id); ResponseEvent<StorageContainerDetail> resp = storageContainerSvc.deleteStorageContainer(req); resp.throwErrorIfUnsuccessful(); return resp.getPayload(); }