String result = restClient.get()
	.uri("<https://example.com/this-url-does-not-exist>")
	.onStatus("HttpStatusCode::is4xxClientError,
					(request, response) ->
							{throw new MyCustomRuntimeException(response.getStatusCode(),
										response.getHeaders()) })
	.body(String.class);
Pet result = restClient.get()
	.uri("<https://petclinic.example.com/pets/{id}>", id)
	.accept(APPLICATION_JSON)
	.exchange((request, response) -> {
			if (response.getStatusCode().is4xxClientError()) {
					throw new MyCustomRuntimeException(response.getStatusCode(),
					response.getHeaders());
			} else { Pet pet = convertResponse(response); return pet;} });
@Component
@RequiredArgsConstructor
public class ApiComponent {

private final AnyComponent anyComponent;

public ApiListResponse findListByKeyWordAndApi(){
	JSONObject json = new JSONObject(anyComponent.findAllByQuery("anyKey", "anyValue");
}