updating error message to indicate a RequestContext is expected