I have created a recipe in Java to submit a REST request and added assertion to it. I am also getting the response back and assertion status, if it is failed or passed.
Is there any way I can get the actual HTTP status code received?
TestRecipe recipe = newTestRecipe().addStep(
Execution execution = executor.executeRecipe(recipe);
ProjectResultReport projectResultReport= execution.getCurrentReport();
RecipeExecutionResult result = execution.getExecutionResult();
String response = result.getTestStepResult(0).getResponseContent();
The Ready API REST test step result is an object of class RestRequestStepResult, the following should get what you are after: