public void setError(int errorCode, String errorMessage) {
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
    }
Register the fact that an error has occurred.

@param errorCode the error code (see {@link ErrorCode})
@param errorMessage the error message
jrt/src/com/yahoo/jrt/Request.java