org.springframework.http.client.reactive

Interface ClientHttpResponse

    • Method Detail

      • getStatusCode

        HttpStatus getStatusCode()
        Return the HTTP status code of the response.
        Returns:
        the HTTP status as an HttpStatus enum value
        Throws:
        java.lang.IllegalArgumentException - in case of an unknown HTTP status code
        See Also:
        HttpStatus.valueOf(int)
      • getRawStatusCode

        int getRawStatusCode()
        Return the HTTP status code (potentially non-standard and not resolvable through the HttpStatus enum) as an integer.
        Returns:
        the HTTP status as an integer
        Since:
        5.0.6
        See Also:
        getStatusCode(), HttpStatus.resolve(int)
      • getCookies

        MultiValueMap<java.lang.String,ResponseCookie> getCookies()
        Return a read-only map of response cookies received from the server.