public function respondWithMessage( $message = null ) {

		$res[ 'status' ] = $this->getStatusText();

		//if it's about failure
		if ( $this->getErrorCode() ) {

			$res[ 'error' ] = $this->getErrorCode();

			if ( is_null( $message ) )
		     $res[ 'message' ] = $this->getErrorMessage();
		    else
		     $res[ 'message' ] = $message;

		} else {

			$res[ 'message' ] = $message;

		}

		return $this->respond( $res );

	}