server/src/main/java/com/orientechnologies/orient/server/network/protocol/http/OHttpResponseWrapper.java
public OHttpResponseWrapper writeStatus(final int iHttpCode, final String iReason) throws IOException {
    response.writeStatus(iHttpCode, iReason);
    return this;
  }
public OHttpResponseWrapper writeStatus(final int iHttpCode, final String iReason) throws IOException {
    response.writeStatus(iHttpCode, iReason);
    return this;
  }
public OHttpResponseWrapper writeStatus ( final int iHttpCode , final String iReason ) throws IOException { response . writeStatus ( iHttpCode , iReason ) ; return this ; }
Sets the response's status as HTTP code and reason.

@param iHttpCode
Response's HTTP code
@param iReason
Response's reason
@return The object itself for fluent chained calls
Sets the response s status as HTTP code and reason .