server/src/main/java/com/orientechnologies/orient/server/network/protocol/http/OHttpResponseWrapper.java
public OHttpResponseWrapper send(final int iCode, final String iReason, final String iContentType, final Object iContent)
      throws IOException {
    response.send(iCode, iReason, iContentType, iContent, null);
    return this;
  }
public OHttpResponseWrapper send(final int iCode, final String iReason, final String iContentType, final Object iContent)
      throws IOException {
    response.send(iCode, iReason, iContentType, iContent, null);
    return this;
  }
Sends the complete HTTP response in one call.

@param iCode
HTTP response's Code
@param iReason
Response's reason
@param iContentType
Response's content type
@param iContent
Content to send. Content can be a string for plain text, binary data to return directly binary information,
OIdentifiable for a single record and Collection<OIdentifiable> for a collection of records
@return The object itself for fluent chained calls