final String errorMessage = String.format("%s request on URI %s was empty", request.getMethod(), request.getRequestURI());
HandlerUtils.configureErrorResponse(wrapper, HttpStatus.NO_CONTENT_204, errorMessage);
return;
}
final String updatedCycleUrl = stubbedDataManager.refreshStubbedData(new YamlParser(), put, stubIndexToUpdate);
wrapper.setStatus(HttpStatus.CREATED_201);
wrapper.addHeader(HttpHeaders.LOCATION, updatedCycleUrl);
final String successfulMessage = String.format("Stub request index#%s updated successfully", stubIndexToUpdate);
wrapper.getWriter().println(successfulMessage);