/** * Returns a representation for the given status. In order to customize the * default representation, this method can be overridden. It returns a * {@link org.restlet.data.Status} representation by default or a * {@link java.lang.Throwable} representation if the throwable is annotated * with {@link org.restlet.resource.Status}. * * @param status * The status to represent. * @param request * The request handled. * @param response * The response updated. * @return The representation of the given status. */ public Representation toRepresentation(Status status, Request request, Response response) { return getRepresentation(status, request, response); }