@ Override public void setStatusCode ( StatusCodes code ) { if ( ! code . equals ( this . myStatusCode ) ) { this . myStatusCode = code ; // no matter what, empty out the reason phrase information so that it // will default to match this new status code this . myReason = null ; this . myReasonBytes = null ; super . setFirstLineChanged ( ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( tc , "setStatusCode(sc): " + code ) ; } }
Set the status code of the response message .