.. java:import:: io.netty.handler.codec.http HttpResponseStatus StatusTuple =========== .. java:package:: io.aalam.common :noindex: .. java:type:: public class StatusTuple An object of this class will be returned by the action handler if it wants to set a status code with a response data Fields ------ data ^^^^ .. java:field:: Object data :outertype: StatusTuple status ^^^^^^ .. java:field:: HttpResponseStatus status :outertype: StatusTuple Constructors ------------ StatusTuple ^^^^^^^^^^^ .. java:constructor:: public StatusTuple(HttpResponseStatus sc, Object data) :outertype: StatusTuple Constructor to set the response status and the data :param sc: netty HttpResponseStatus object :param data: if not null should be an object of Serializer **See also:** :java:ref:`Serializer`, :java:ref:`HttpResponseStatus`