# Class Response<T>

java.lang.Object
com.codename1.io.rest.Response<T>

public class Response<T> extends Object
The http Response class

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getResponseCode()`
  The http response code
  `T`
  `getResponseData()`
  The http response data
  `String`
  `getResponseErrorMessage()`
  Returns the error message that accompanies the response

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### getResponseData

    public T getResponseData()

    The http response data

    ###### Returns

    the data

  - ### getResponseCode

    public int getResponseCode()

    The http response code

    ###### Returns

    the code

  - ### getResponseErrorMessage

    public String getResponseErrorMessage()

    Returns the error message that accompanies the response

    ###### Returns

    the response